diff options
author | Danesh M <daneshm90@gmail.com> | 2015-09-10 12:30:26 -0700 |
---|---|---|
committer | Ed Mancebo <emancebo@cyngn.com> | 2015-09-11 15:22:19 -0700 |
commit | edcadb13196f8db5597d19585c278736c4226b31 (patch) | |
tree | 5006d7737eb751588cb638d0f41ceb2152d29082 | |
parent | 7634951a8cbde6c9b86c6f593167504091ac1bfb (diff) | |
download | android_packages_apps_LockClock-edcadb13196f8db5597d19585c278736c4226b31.tar.gz android_packages_apps_LockClock-edcadb13196f8db5597d19585c278736c4226b31.tar.bz2 android_packages_apps_LockClock-edcadb13196f8db5597d19585c278736c4226b31.zip |
LockClock : Ensure configuration screen doesn't crash on orientation
If the user switches orientation when the progress dialog for custom
location is showing, the dialog is torn down, then the task completes
and tries to dismiss causing a crash.
Since we have multiple dialogs to keep state of and our activity
does not do anything fancy with orientation change, just override it
and avoid tearing down the ui.
Repro :
1. Click custom location preference for weather
2. Rotate screen after pressing OK
3. Observe crash
issue-id : CYNGNOS-994
Change-Id: Id11ce29ce95324c88f83b135684886acf51e0be2
(cherry picked from commit 4bdff092741a6fdd261ffae1eb9cc25e7c014fc3)
-rw-r--r-- | AndroidManifest.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8d45a72..e9e51f0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -48,6 +48,7 @@ <activity android:name=".preference.Preferences" + android:configChanges="orientation|screenSize" android:label="@string/app_name" > <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> |