summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-12-14 00:50:54 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-12-14 00:50:54 -0800
commitb2b91aa64068c482961e52a5d74fcdf93b002f51 (patch)
tree391ac597761a21bb9408c39fbe78d10a2fe2c8fd /src
parent7f7357a2e11351d82e4de2c6dc5fb8aa4d22e448 (diff)
parenta225ddd9a74b0354ee391cc52512163880754d8c (diff)
downloadandroid_packages_apps_Gallery2-b2b91aa64068c482961e52a5d74fcdf93b002f51.tar.gz
android_packages_apps_Gallery2-b2b91aa64068c482961e52a5d74fcdf93b002f51.tar.bz2
android_packages_apps_Gallery2-b2b91aa64068c482961e52a5d74fcdf93b002f51.zip
Merge "Gallery in separate task for up button in Camera filmstrip" into gb-ub-photos-bryce
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/util/GalleryUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/util/GalleryUtils.java b/src/com/android/gallery3d/util/GalleryUtils.java
index a4b6bfdc7..1e5d8d5fe 100644
--- a/src/com/android/gallery3d/util/GalleryUtils.java
+++ b/src/com/android/gallery3d/util/GalleryUtils.java
@@ -251,7 +251,9 @@ public class GalleryUtils {
}
public static void startGalleryActivity(Context context) {
- Intent intent = new Intent(context, Gallery.class);
+ Intent intent = new Intent(context, Gallery.class)
+ .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
+ | Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
}