summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-01-07 11:25:46 -0800
committerBobby Georgescu <georgescu@google.com>2013-01-07 11:25:46 -0800
commitdb3771f25a819246badc3483ebe1a35919c670b2 (patch)
treef3a7b7bbf579933f23101b1b4ad5ed7746f93398 /src
parent3c081799a4fff041ee7485de1dd969dcc06d562e (diff)
downloadandroid_packages_apps_Snap-db3771f25a819246badc3483ebe1a35919c670b2.tar.gz
android_packages_apps_Snap-db3771f25a819246badc3483ebe1a35919c670b2.tar.bz2
android_packages_apps_Snap-db3771f25a819246badc3483ebe1a35919c670b2.zip
Fix camera->gallery relaunch loop on empty camera album
Bug: 7952132 Change-Id: I27325abe32177195d07fe310b8c49aca81af9056
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index ca3ee19ab..852023441 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -345,7 +345,7 @@ public abstract class PhotoPage extends ActivityState implements
}
if (stayedOnCamera) {
- if (mAppBridge == null) {
+ if (mAppBridge == null && mMediaSet.getTotalMediaItemCount() > 1) {
launchCamera();
/* We got here by swiping from photo 1 to the
placeholder, so make it be the thing that