This commit is contained in:
serso 2012-10-03 16:43:06 +04:00
parent a145edbd27
commit c720306891

View File

@ -1,31 +1,27 @@
/* /*
* Copyright (c) 2009-2011. Created by serso aka se.solovyev. * Copyright (c) 2009-2011. Created by serso aka se.solovyev.
* For more information, please, contact se.solovyev@gmail.com * For more information, please, contact se.solovyev@gmail.com
* or visit http://se.solovyev.org
*/ */
package org.solovyev.android.calculator.about; package org.solovyev.android.calculator.about;
import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import org.solovyev.android.calculator.CalculatorFragmentActivity;
import org.solovyev.android.calculator.R; import org.solovyev.android.calculator.R;
/** /**
* User: serso * User: serso
* Date: 12/24/11 * Date: 9/16/11
* Time: 11:55 PM * Time: 11:52 PM
*/ */
public class CalculatorAboutActivity extends Activity { public class CalculatorAboutActivity extends CalculatorFragmentActivity {
@Override @Override
public void onCreate(@Nullable Bundle savedInstanceState) { public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.about);
final TextView about = (TextView) findViewById(R.id.aboutTextView); getActivityHelper().addTab(this, CalculatorFragmentType.about, null, R.id.main_layout);
about.setMovementMethod(LinkMovementMethod.getInstance()); getActivityHelper().addTab(this, CalculatorFragmentType.release_notes, null, R.id.main_layout);
} }
} }