diff options
author | Chih-Chung Chang <chihchung@google.com> | 2011-09-08 11:51:11 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2011-09-08 11:51:11 +0800 |
commit | 377436d87c014ae5ebf641c6f22c64f527a7e3fb (patch) | |
tree | 967004680cfaa3c1eb59dd9201ff8ba1aab73dd9 | |
parent | 6ee3afc7db3f844b92f5ad8c14cf7349167f7000 (diff) | |
download | android_packages_apps_Snap-377436d87c014ae5ebf641c6f22c64f527a7e3fb.tar.gz android_packages_apps_Snap-377436d87c014ae5ebf641c6f22c64f527a7e3fb.tar.bz2 android_packages_apps_Snap-377436d87c014ae5ebf641c6f22c64f527a7e3fb.zip |
Fix 5263604: View not attached to window manager.
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
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index 3a0bcd23f..3e8972f4b 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -559,6 +559,7 @@ public class PhotoPage extends ActivityState mModel.pause(); mHandler.removeMessages(MSG_HIDE_BARS); mActionBar.removeOnMenuVisibilityListener(mMenuVisibilityListener); + mMenuExecutor.pause(); } @Override |