summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());
}