summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorRay Chen <raychen@google.com>2011-10-19 18:30:48 +0800
committerWei Huang <weih@google.com>2011-10-19 13:31:33 -0700
commit1ce57c4093b75959ccff03bff9027d9cc8902c4a (patch)
tree9c3a42f8f3605a362859e61dd66ff37674f942bd /src/com/android/gallery3d
parent2c6f312f908f863b93226fafab127a8f69d9d49a (diff)
downloadandroid_packages_apps_Snap-1ce57c4093b75959ccff03bff9027d9cc8902c4a.tar.gz
android_packages_apps_Snap-1ce57c4093b75959ccff03bff9027d9cc8902c4a.tar.bz2
android_packages_apps_Snap-1ce57c4093b75959ccff03bff9027d9cc8902c4a.zip
Fix 5418759 User should be able to view only the preview of that attached
Change-Id: Ie3eb2583f7753fc38db3d59aca544a95112010c7
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/app/Gallery.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/Gallery.java b/src/com/android/gallery3d/app/Gallery.java
index 1ffa6ecde..ebfa98495 100644
--- a/src/com/android/gallery3d/app/Gallery.java
+++ b/src/com/android/gallery3d/app/Gallery.java
@@ -186,7 +186,9 @@ public final class Gallery extends AbstractGalleryActivity {
} else {
Path itemPath = dm.findPathByUri(uri);
Path albumPath = dm.getDefaultSetOf(itemPath);
- if (albumPath != null) {
+ // TODO: Make this parameter public so other activities can reference it.
+ boolean singleItemOnly = intent.getBooleanExtra("SingleItemOnly", false);
+ if (!singleItemOnly && albumPath != null) {
data.putString(PhotoPage.KEY_MEDIA_SET_PATH,
albumPath.toString());
}