diff options
author | jinwu <jinwu@codeaurora.org> | 2018-09-21 18:27:54 +0800 |
---|---|---|
committer | jinwu <jinwu@codeaurora.org> | 2018-09-21 18:27:54 +0800 |
commit | f5b1294d4602ffa447340087fdf974e55dea3112 (patch) | |
tree | c711f332253a76479118011c037cf01bcc33674b /src/com/android/camera/CaptureUI.java | |
parent | a26301351c28e820f6c2346ebd07265cfed14c8b (diff) | |
download | android_packages_apps_Snap-f5b1294d4602ffa447340087fdf974e55dea3112.tar.gz android_packages_apps_Snap-f5b1294d4602ffa447340087fdf974e55dea3112.tar.bz2 android_packages_apps_Snap-f5b1294d4602ffa447340087fdf974e55dea3112.zip |
remove flash icon in promode
flash is not supported in promode now,
so remove flash icon
Change-Id: Ib91c1dfd1fd5313d93a5e88c56823aeefb3fc31a
CRs-Fixed:2290558
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 7 |
1 files changed, 5 insertions, 2 deletions
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 |