From 6f51ef0ceeac577e983a95a93eb79b42be8f4eaa Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Sun, 7 Oct 2012 23:06:05 -0700 Subject: Launch correct photo when tapping grid item in Camera roll Bug: 7303049 Change-Id: Ie3dd2b010d60669cd000a2ed9b52e0611b0977bd --- src/com/android/gallery3d/app/PhotoPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com') 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()) { -- cgit v1.2.3