diff options
author | hanpengx <pengfeix.han@intel.com> | 2014-01-07 21:56:34 +0800 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2014-04-26 02:15:50 +0300 |
commit | 3a75ff8ea1c39d96e6162f633fc58fe8e7c09bd4 (patch) | |
tree | 8768bc2324025b11e977c81b706bb5dd936d9562 | |
parent | 14d298355cd34f494e417f9b28fad48f2d376a50 (diff) | |
download | android_packages_apps_CertInstaller-3a75ff8ea1c39d96e6162f633fc58fe8e7c09bd4.tar.gz android_packages_apps_CertInstaller-3a75ff8ea1c39d96e6162f633fc58fe8e7c09bd4.tar.bz2 android_packages_apps_CertInstaller-3a75ff8ea1c39d96e6162f633fc58fe8e7c09bd4.zip |
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.xml | 2 |
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" /> |