android_1.6_compatibility

This commit is contained in:
Sergey Solovyev
2011-10-20 14:57:59 +04:00
parent 792e8378f1
commit 1b581304c6
18 changed files with 136 additions and 116 deletions

View File

@@ -341,13 +341,18 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster, Sh
public void restart() {
final Intent intent = getIntent();
/*
for compatibility with android_1.6_compatibility
overridePendingTransition(0, 0);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);*/
Log.d(this.getClass().getName(), "Finishing current activity!");
finish();
overridePendingTransition(0, 0);
/*
for compatibility with android_1.6_compatibility
overridePendingTransition(0, 0);*/
Log.d(this.getClass().getName(), "Starting new activity!");
startActivity(intent);
}

View File

@@ -283,8 +283,8 @@ public class NumberPicker extends LinearLayout {
if (displayedValues != null) {
// Allow text entry rather than strictly numeric entry.
mText.setRawInputType(InputType.TYPE_CLASS_TEXT |
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
mText.setRawInputType(InputType.TYPE_CLASS_TEXT/* |
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS*/);
}
}