diff options
author | Owen Lin <> | 2009-03-24 23:41:27 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 23:41:27 -0700 |
commit | 095afa19556bf550262e3cccb9edacc04e6f726a (patch) | |
tree | c23e8d5f20fb5979b3c1e5a0cd738d073248d71c /src/com/android/camera/MenuHelper.java | |
parent | 11c53782ca0a7be5e033bafdf0be6ac124bde8cb (diff) | |
download | LegacyCamera-095afa19556bf550262e3cccb9edacc04e6f726a.zip LegacyCamera-095afa19556bf550262e3cccb9edacc04e6f726a.tar.gz LegacyCamera-095afa19556bf550262e3cccb9edacc04e6f726a.tar.bz2 |
Automated import from //branches/donutburger/...@142517,142517
Diffstat (limited to 'src/com/android/camera/MenuHelper.java')
-rw-r--r-- | src/com/android/camera/MenuHelper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java index ed5803c..9fae480 100644 --- a/src/com/android/camera/MenuHelper.java +++ b/src/com/android/camera/MenuHelper.java @@ -63,7 +63,7 @@ public class MenuHelper { static public final int INCLUDE_CROP_MENU = (1 << 3); static public final int INCLUDE_DELETE_MENU = (1 << 4); static public final int INCLUDE_ROTATE_MENU = (1 << 5); - static public final int INCLUDE_DETAILS_MENU = (1 << 5); + static public final int INCLUDE_DETAILS_MENU = (1 << 6); static public final int MENU_SWITCH_CAMERA_MODE = 0; static public final int MENU_CAPTURE_PICTURE = 1; @@ -487,7 +487,7 @@ public class MenuHelper { static void deletePhoto(Activity activity, Runnable onDelete) { deleteImpl(activity, onDelete, true); } - + static void deleteVideo(Activity activity, Runnable onDelete) { deleteImpl(activity, onDelete, false); } @@ -543,8 +543,8 @@ public class MenuHelper { String action = switchToVideo ? MediaStore.INTENT_ACTION_VIDEO_CAMERA : MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA; Intent intent = new Intent(action); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT); - activity.finish(); activity.startActivity(intent); return true; } |