STK UI error when configuration changes
On any of the following configuration changes:
- Phone orientation changed from portrait to landscape mode
- Screen size changed
- Keyboard hidden
- MNC/MCC changed
while the STK menu activity, dialog activity or input activity is
active, the activity will be destroyed and a new instance created.
This can cause inconsistencies in the UI.
Add relevant configChanges in the manifest to prevent this.
Change-Id: I430ac60f9fd3648d5c880ca57cf6c0ca75e3270e
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e750e93..e11619d 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -39,6 +39,7 @@
</activity>
<activity android:name="StkMenuActivity"
+ android:configChanges="orientation|screenSize|keyboardHidden|mnc|mcc"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@@ -48,7 +49,7 @@
</activity>
<activity android:name="StkInputActivity"
- android:configChanges="orientation|screenSize">
+ android:configChanges="orientation|screenSize|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
@@ -58,7 +59,7 @@
<activity android:name="StkDialogActivity"
android:theme="@android:style/Theme.Dialog"
- android:configChanges="orientation|screenSize">
+ android:configChanges="orientation|screenSize|keyboardHidden">
</activity>
<activity android:name="ToneDialog"