From c7203068916c5500bd4c3f531c547193567aa3fd Mon Sep 17 00:00:00 2001 From: serso Date: Wed, 3 Oct 2012 16:43:06 +0400 Subject: [PATCH] Changes --- .../about/CalculatorAboutActivity.java | 58 +++++++++---------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/about/CalculatorAboutActivity.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/about/CalculatorAboutActivity.java index 0214140b..6f9d2c66 100644 --- a/calculatorpp/src/main/java/org/solovyev/android/calculator/about/CalculatorAboutActivity.java +++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/about/CalculatorAboutActivity.java @@ -1,31 +1,27 @@ -/* - * Copyright (c) 2009-2011. Created by serso aka se.solovyev. - * For more information, please, contact se.solovyev@gmail.com - * or visit http://se.solovyev.org - */ - -package org.solovyev.android.calculator.about; - -import android.app.Activity; -import android.os.Bundle; -import android.text.method.LinkMovementMethod; -import android.widget.TextView; -import org.jetbrains.annotations.Nullable; -import org.solovyev.android.calculator.R; - -/** - * User: serso - * Date: 12/24/11 - * Time: 11:55 PM - */ -public class CalculatorAboutActivity extends Activity { - - @Override - public void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.about); - - final TextView about = (TextView) findViewById(R.id.aboutTextView); - about.setMovementMethod(LinkMovementMethod.getInstance()); - } -} +/* + * Copyright (c) 2009-2011. Created by serso aka se.solovyev. + * For more information, please, contact se.solovyev@gmail.com + */ + +package org.solovyev.android.calculator.about; + +import android.os.Bundle; +import org.jetbrains.annotations.Nullable; +import org.solovyev.android.calculator.CalculatorFragmentActivity; +import org.solovyev.android.calculator.R; + +/** + * User: serso + * Date: 9/16/11 + * Time: 11:52 PM + */ +public class CalculatorAboutActivity extends CalculatorFragmentActivity { + + @Override + public void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + getActivityHelper().addTab(this, CalculatorFragmentType.about, null, R.id.main_layout); + getActivityHelper().addTab(this, CalculatorFragmentType.release_notes, null, R.id.main_layout); + } +}