summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-07 23:06:05 -0700
committerBobby Georgescu <georgescu@google.com>2012-10-07 23:06:05 -0700
commit6f51ef0ceeac577e983a95a93eb79b42be8f4eaa (patch)
treef9cd5e6079d816912bf65e6791a47dca43188525 /src/com
parent4e82fcb4fecd90087b322f4ad0a40b99d83160ad (diff)
downloadandroid_packages_apps_Snap-6f51ef0ceeac577e983a95a93eb79b42be8f4eaa.tar.gz
android_packages_apps_Snap-6f51ef0ceeac577e983a95a93eb79b42be8f4eaa.tar.bz2
android_packages_apps_Snap-6f51ef0ceeac577e983a95a93eb79b42be8f4eaa.zip
Launch correct photo when tapping grid item in Camera roll
Bug: 7303049 Change-Id: Ie3dd2b010d60669cd000a2ed9b52e0611b0977bd
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 7f6d77325..9bb3934c3 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1239,8 +1239,8 @@ public class PhotoPage extends ActivityState implements
} else {
int resumeIndex = transitions.get(KEY_INDEX_HINT, -1);
if (resumeIndex >= 0) {
- if (mAppBridge != null) {
- // Account for live preview being the first item
+ if (mInCameraRoll) {
+ // Account for preview/placeholder being the first item
resumeIndex++;
}
if (resumeIndex < mMediaSet.getMediaItemCount()) {