summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhanpengx <pengfeix.han@intel.com>2014-01-07 21:56:34 +0800
committerpengfeix.han <pengfeix.han@intel.com>2014-03-19 09:58:41 +0000
commite474207f4b075d17912d4316974ff628efad60ac (patch)
tree9c998d674c3cf340444c5bd97301773b278228e3
parent05f3aaf8668858d24ce90bd595af09019dc9dc01 (diff)
downloadCertInstaller-e474207f4b075d17912d4316974ff628efad60ac.tar.gz
Prevent CertInstallerMain from being recreated upon screenSize change
Steps to Reproduce on Nexus 10: 1.Enter Settings app->Wi-Fi. 2.Tap options menu and select "Advanced" item. 3.Tap "Install certificates" item. 4.Rotate the device. 5.Two instances of DocumentsActivity will be created. In step 3, Settings app will start CertInstallerMain Activity(invisible) when user want to install certificates, then CertInstallerMain will start DocumentsActivity with action Intent.ACTION_OPEN_DOCUMENT to open document in its onCreate() method. When user rotate the screen, the configuration screenSize will change, then the CertInstallerMain will be destroyed and recreated, the DocumentsActivity will be created again in onCreate() method of CertInstallerMain. Change-Id: I0d31b9936aa158afbea6f426b5216fad50e6b237 Signed-off-by: hanpengx <pengfeix.han@intel.com> Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
-rw-r--r--AndroidManifest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0d754b1..2ac35bd 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -10,7 +10,7 @@
android:allowBackup="false">
<activity android:name=".CertInstallerMain"
android:theme="@style/Transparent"
- android:configChanges="orientation|keyboardHidden">
+ android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.credentials.INSTALL" />
<category android:name="android.intent.category.DEFAULT" />