diff options
| author | Bobby Georgescu <georgescu@google.com> | 2012-10-07 23:06:05 -0700 |
|---|---|---|
| committer | Bobby Georgescu <georgescu@google.com> | 2012-10-07 23:06:05 -0700 |
| commit | 76f1881067d7ca4eda6d3e398567473d2913c5d1 (patch) | |
| tree | 07e05cea955473ffef9dc59fd3e4ac817044dc2f | |
| parent | ed8c88102153dd7dca8458d7f0a9b81937c58023 (diff) | |
| download | android_packages_apps_Gallery2-76f1881067d7ca4eda6d3e398567473d2913c5d1.tar.gz android_packages_apps_Gallery2-76f1881067d7ca4eda6d3e398567473d2913c5d1.tar.bz2 android_packages_apps_Gallery2-76f1881067d7ca4eda6d3e398567473d2913c5d1.zip | |
Launch correct photo when tapping grid item in Camera roll
Bug: 7303049
Change-Id: Ie3dd2b010d60669cd000a2ed9b52e0611b0977bd
| -rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 4 |
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()) { |
