Merge "Fix crash introduced with the GeometryMetadata" into gb-ub-photos-arches
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index aecbb16..5c9c598 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1169,6 +1169,8 @@
mHandler.removeMessages(MSG_UNFREEZE_GLROOT);
DetailsHelper.pause();
+ // Hide the detail dialog on exit
+ if (mShowDetails) hideDetails();
if (mModel != null) {
if (isFinishing()) preparePhotoFallbackView();
mModel.pause();