From 13c2e7b788203f397085bef563bc5597e4c98028 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 10 Mar 2010 19:45:00 -0800 Subject: 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 --- src/com/android/launcher2/Launcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/launcher2/Launcher.java') 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 -- cgit v1.2.3