summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authorjinwu <jinwu@codeaurora.org>2018-09-21 18:27:54 +0800
committerjinwu <jinwu@codeaurora.org>2018-09-21 18:27:54 +0800
commitf5b1294d4602ffa447340087fdf974e55dea3112 (patch)
treec711f332253a76479118011c037cf01bcc33674b /src/com/android/camera/CaptureUI.java
parenta26301351c28e820f6c2346ebd07265cfed14c8b (diff)
downloadandroid_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-xsrc/com/android/camera/CaptureUI.java7
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