OSDN Git Service

Fix 5263604: View not attached to window manager.
authorChih-Chung Chang <chihchung@google.com>
Thu, 8 Sep 2011 03:51:11 +0000 (11:51 +0800)
committerChih-Chung Chang <chihchung@google.com>
Thu, 8 Sep 2011 03:51:11 +0000 (11:51 +0800)
We need to make sure the dialog is dismissed before onDestroy
is finished so we still have the window. (We do it in onPause.)

Change-Id: I896583a67e117c9e4c5a1312541d67efa01295bf

src/com/android/gallery3d/app/PhotoPage.java

index 3a0bcd2..3e8972f 100644 (file)
@@ -559,6 +559,7 @@ public class PhotoPage extends ActivityState
         mModel.pause();
         mHandler.removeMessages(MSG_HIDE_BARS);
         mActionBar.removeOnMenuVisibilityListener(mMenuVisibilityListener);
+        mMenuExecutor.pause();
     }
 
     @Override