diff options
-rw-r--r-- | src/com/android/gallery3d/app/Gallery.java | 4 |
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()); } |