OSDN Git Service

Fix up button behavior in camera app
authorBobby Georgescu <georgescu@google.com>
Fri, 28 Sep 2012 01:10:06 +0000 (18:10 -0700)
committerBobby Georgescu <georgescu@google.com>
Fri, 28 Sep 2012 01:12:27 +0000 (18:12 -0700)
Bug: 7233448
Change-Id: Ifb2833f6c1303dc60a9b88b217648d0c0098f242

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

index a19798f..29b6573 100644 (file)
@@ -209,7 +209,11 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
             }
             // TODO: fix this regression
             // mAlbumView.savePositions(PositionRepository.getInstance(mActivity));
-            onUpPressed();
+            if (mInCameraApp) {
+                super.onBackPressed();
+            } else {
+                onUpPressed();
+            }
         }
     }