Fix bug 2249797 - Launcher2 leaking textures on locale change
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index a4891da..7f6e8ff 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -179,6 +179,8 @@
public void surfaceDestroyed(SurfaceHolder holder) {
super.surfaceDestroyed(holder);
mRollo.mHasSurface = false;
+ // Without this, we leak mMessageCallback which leaks the context.
+ mRS.mMessageCallback = null;
}
@Override