OSDN Git Service

Fix details dialog not being dismissed
authorDoris Liu <tianliu@google.com>
Mon, 8 Oct 2012 23:31:00 +0000 (16:31 -0700)
committerDoris Liu <tianliu@google.com>
Tue, 9 Oct 2012 00:16:21 +0000 (17:16 -0700)
Bug: 7300997
Change-Id: I0d0dad50a9777f8ea49889a4517b8704a03021c5

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

index aecbb16..5c9c598 100644 (file)
@@ -1169,6 +1169,8 @@ public class PhotoPage extends ActivityState implements
         mHandler.removeMessages(MSG_UNFREEZE_GLROOT);
 
         DetailsHelper.pause();
+        // Hide the detail dialog on exit
+        if (mShowDetails) hideDetails();
         if (mModel != null) {
             if (isFinishing()) preparePhotoFallbackView();
             mModel.pause();