OSDN Git Service

Fix settings crash during pathological rotate.
authorJohn Spurlock <jspurlock@google.com>
Mon, 28 Apr 2014 19:28:37 +0000 (15:28 -0400)
committerJohn Spurlock <jspurlock@google.com>
Mon, 28 Apr 2014 19:28:37 +0000 (15:28 -0400)
Bug:14281882
Change-Id: If30a3e8eea35564853fc12c03f8ab63c258310c9

src/com/android/settings/notification/AppNotificationSettings.java

index 172557d..c63ae63 100644 (file)
@@ -114,6 +114,12 @@ public class AppNotificationSettings extends ListFragment {
     }
 
     @Override
+    public void onDestroyView() {
+        super.onDestroyView();
+        mListViewState = null;  // you're dead to me
+    }
+
+    @Override
     public void onResume() {
         super.onResume();
         loadAppsList();