summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-12-14 00:18:51 -0800
committerBobby Georgescu <georgescu@google.com>2012-12-14 00:18:51 -0800
commitf40318094c182bf2fb39e817d10bdb86782d93f0 (patch)
tree01914a5815c42f845fcec6233148e3270a2d698c
parent7f7f875515cbafa91ca935748e6f9e97fa0b6b76 (diff)
downloadandroid_packages_apps_Snap-f40318094c182bf2fb39e817d10bdb86782d93f0.tar.gz
android_packages_apps_Snap-f40318094c182bf2fb39e817d10bdb86782d93f0.tar.bz2
android_packages_apps_Snap-f40318094c182bf2fb39e817d10bdb86782d93f0.zip
Gallery in separate task for up button in Camera filmstrip
Bug: 7738398 Change-Id: I297c15f0a3e537d96d79b05e1dd8d376ff59bfca
-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);
}