diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-11-05 21:21:55 -0800 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-11-06 10:54:31 -0800 |
commit | 9ec5de9dbf46caecd2f0b38a72d31fa37ecb0466 (patch) | |
tree | 9dd9dfad19840472f72bcff91c95aed0a49cd8e3 | |
parent | b41864f13b83a4f2d92f601b2e4381762ad1effa (diff) | |
download | android_packages_apps_Gallery2-9ec5de9dbf46caecd2f0b38a72d31fa37ecb0466.tar.gz android_packages_apps_Gallery2-9ec5de9dbf46caecd2f0b38a72d31fa37ecb0466.tar.bz2 android_packages_apps_Gallery2-9ec5de9dbf46caecd2f0b38a72d31fa37ecb0466.zip |
Fix scenario where launching Gallery launches Camera
Bug: 7479102
Change-Id: Ib4676a7149c659897eee1dbbb92ab09861bd0ed4
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index 41c86afc8..cda0f341c 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -688,7 +688,8 @@ public class PhotoPage extends ActivityState implements } private void launchCamera() { - Intent intent = new Intent(mActivity, CameraActivity.class); + Intent intent = new Intent(mActivity, CameraActivity.class) + .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mRecenterCameraOnResume = false; mActivity.startActivity(intent); } |