diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-10-19 22:13:35 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-10-20 11:11:03 +0800 |
commit | eeeea93f90ff788a3d86e1e3bb2bb4725adff9ee (patch) | |
tree | c076a368d00a396bb79a53dc1da5d8b667b6f504 /src/com/android/camera/MenuHelper.java | |
parent | f9f24d4c578a01cb09a7e5c4c66b75595d3669ee (diff) | |
download | LegacyCamera-eeeea93f90ff788a3d86e1e3bb2bb4725adff9ee.zip LegacyCamera-eeeea93f90ff788a3d86e1e3bb2bb4725adff9ee.tar.gz LegacyCamera-eeeea93f90ff788a3d86e1e3bb2bb4725adff9ee.tar.bz2 |
Reset the video effect when camcorder application starts.
On video recording, if a Background effect is applied,
it is strange to see the popup window the next time the camera app
is opened.
bug:5477191
To reproduce:
-Open camera;
-Select Video recorder;
-Select settings>Effects>Background;
-Activate a background effect;
-The pop-up ("Place your device...") comes out;
-Effect is active;
-Press Home;
-Select the Camera app again;
-The pop-up is triggered again. The app is in background effect mode.
Change-Id: Iea44d7ef2243df5dec961e5ecf67e85b5e971dcb
Diffstat (limited to 'src/com/android/camera/MenuHelper.java')
-rw-r--r-- | src/com/android/camera/MenuHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java index 2e1ec28..07caeb2 100644 --- a/src/com/android/camera/MenuHelper.java +++ b/src/com/android/camera/MenuHelper.java @@ -138,8 +138,9 @@ public class MenuHelper { startCameraActivity(activity, new Intent(action), className); } - public static void gotoVideoMode(Activity activity) { + public static void gotoVideoMode(Activity activity, boolean resetEffect) { Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA); + intent.putExtra(VideoCamera.RESET_EFFECT_EXTRA, resetEffect); startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); } |