From f5b1294d4602ffa447340087fdf974e55dea3112 Mon Sep 17 00:00:00 2001 From: jinwu Date: Fri, 21 Sep 2018 18:27:54 +0800 Subject: remove flash icon in promode flash is not supported in promode now, so remove flash icon Change-Id: Ib91c1dfd1fd5313d93a5e88c56823aeefb3fc31a CRs-Fixed:2290558 --- src/com/android/camera/CaptureUI.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/com/android/camera/CaptureUI.java') diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java index ccb45e12d..1e624e1ce 100755 --- a/src/com/android/camera/CaptureUI.java +++ b/src/com/android/camera/CaptureUI.java @@ -697,10 +697,13 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, public void initializeProMode(boolean promode) { mCameraControls.setProMode(promode); - if (promode) + if (promode) { mVideoButton.setVisibility(View.INVISIBLE); - else if (mModule.getCurrentIntentMode() == CaptureModule.INTENT_MODE_NORMAL) + mFlashButton.setVisibility(View.INVISIBLE); + } + else if (mModule.getCurrentIntentMode() == CaptureModule.INTENT_MODE_NORMAL) { mVideoButton.setVisibility(View.VISIBLE); + } } // called from onResume but only the first time -- cgit v1.2.3