summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2017-02-20 13:46:57 +0800
committerjunjiez <junjiez@codeaurora.org>2017-02-20 13:46:57 +0800
commit0ae7cbe9312efd4c9c847ddcfd90db2caadfb2e5 (patch)
tree84777a77584b820b532268ad7452848b388bed52 /src/com/android/camera/CaptureUI.java
parent3196565b3091f36a00428c0509c2bfd959c84b85 (diff)
downloadandroid_packages_apps_Snap-0ae7cbe9312efd4c9c847ddcfd90db2caadfb2e5.tar.gz
android_packages_apps_Snap-0ae7cbe9312efd4c9c847ddcfd90db2caadfb2e5.tar.bz2
android_packages_apps_Snap-0ae7cbe9312efd4c9c847ddcfd90db2caadfb2e5.zip
SnapdragonCamera: fix filter menu showed in review
When camera is called by 3rd-party app and color filter menu is showed, the menu will not be closed after capture and preview is showed,add a judgement to close it. Change-Id: I79e254721a56abf190ce979fb84b62c08128498a CRs-Fixed: 2008844
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/CaptureUI.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 58ecdfb6f..c0be9b77f 100644..100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -488,6 +488,9 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
mDecodeTaskForReview = new CaptureUI.DecodeImageForReview(jpegData, orientation, mirror);
mDecodeTaskForReview.execute();
if (getCurrentIntentMode() != CaptureModule.INTENT_MODE_NORMAL) {
+ if (mFilterMenuStatus == FILTER_MENU_ON) {
+ removeFilterMenu(false);
+ }
mPreviewLayout.setVisibility(View.VISIBLE);
CameraUtil.fadeIn(mReviewDoneButton);
CameraUtil.fadeIn(mReviewRetakeButton);
@@ -496,6 +499,9 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
protected void showRecordVideoForReview(Bitmap preview) {
if (getCurrentIntentMode() != CaptureModule.INTENT_MODE_NORMAL) {
+ if (mFilterMenuStatus == FILTER_MENU_ON) {
+ removeFilterMenu(false);
+ }
mReviewImage.setImageBitmap(preview);
mPreviewLayout.setVisibility(View.VISIBLE);
mReviewPlayButton.setVisibility(View.VISIBLE);