diff options
author | Romain Guy <romainguy@android.com> | 2010-03-10 19:45:00 -0800 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2010-03-10 19:45:00 -0800 |
commit | 13c2e7b788203f397085bef563bc5597e4c98028 (patch) | |
tree | ee6d0995dd498b604f0a9af44f5a266f661311e1 /src/com/android/launcher2/Launcher.java | |
parent | 63cc18042cacb5d03650bed079440a1ff2b09417 (diff) | |
download | android_packages_apps_Trebuchet-13c2e7b788203f397085bef563bc5597e4c98028.tar.gz android_packages_apps_Trebuchet-13c2e7b788203f397085bef563bc5597e4c98028.tar.bz2 android_packages_apps_Trebuchet-13c2e7b788203f397085bef563bc5597e4c98028.zip |
Prevent ANR in Home when changing orientation.
Bug #2504556
This solves the issue by keeping the GL context, the RS context and
the RS scene around, across orientation changes.
Change-Id: I8e3dc6e6bf039087046d49d2826c8800c5bef582
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index df2dd6655..f7cb7499e 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -424,11 +424,12 @@ public final class Launcher extends Activity public Object onRetainNonConfigurationInstance() { // Flag the loader to stop early before switching mModel.stopLoader(); + mAllAppsGrid.surrender(); if (PROFILE_ROTATE) { android.os.Debug.startMethodTracing("/sdcard/launcher-rotate"); } - return null; + return Boolean.TRUE; } // We can't hide the IME if it was forced open. So don't bother |