summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-02-08 20:37:57 +0100
committerDan Pasanen <dan.pasanen@gmail.com>2017-02-09 18:59:07 +0000
commit84752f915ee31ee5f2426474eb58ee4e05874dc6 (patch)
tree1fec7f849b82c2cf6134e390e097abd738d46071
parent75de9ea72239a662f5070be38d231a8602877d05 (diff)
downloadandroid_packages_apps_Snap-84752f915ee31ee5f2426474eb58ee4e05874dc6.tar.gz
android_packages_apps_Snap-84752f915ee31ee5f2426474eb58ee4e05874dc6.tar.bz2
android_packages_apps_Snap-84752f915ee31ee5f2426474eb58ee4e05874dc6.zip
Snap: VideoModule: Update flash status on preference change
The flash preference was read only during initialization. Do it whenever the preferences change. Change-Id: I32c0d96f6c71dca98953a7bb29dbfa2f59ac4b07
-rw-r--r--src/com/android/camera/VideoModule.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index bdae5bba9..bdc1ccd0d 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -2843,6 +2843,8 @@ public class VideoModule extends BaseModule<VideoUI> implements
synchronized (mCameraDevice) {
Log.d(TAG, "Preview dimension in App->" + mDesiredPreviewWidth + "X" + mDesiredPreviewHeight);
+ forceFlashOffIfSupported(!mPreviewFocused);
+
// Set exposure compensation
int value = CameraSettings.readExposure(mPreferences);
int max = mParameters.getMaxExposureCompensation();