From f40318094c182bf2fb39e817d10bdb86782d93f0 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Fri, 14 Dec 2012 00:18:51 -0800 Subject: Gallery in separate task for up button in Camera filmstrip Bug: 7738398 Change-Id: I297c15f0a3e537d96d79b05e1dd8d376ff59bfca --- src/com/android/gallery3d/util/GalleryUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3