summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-02-08 20:37:57 +0100
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-11 01:46:35 +0000
commit670944b143ec4059ca3c02cccae6437205020bb3 (patch)
tree0f4fb04d35bbe1247518b73e755bfbca69eb7a42
parent3ff33285506a7c95f39f48f9284c786380a524bc (diff)
downloadandroid_packages_apps_Snap-670944b143ec4059ca3c02cccae6437205020bb3.zip
android_packages_apps_Snap-670944b143ec4059ca3c02cccae6437205020bb3.tar.gz
android_packages_apps_Snap-670944b143ec4059ca3c02cccae6437205020bb3.tar.bz2
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 (cherry picked from commit 84752f915ee31ee5f2426474eb58ee4e05874dc6)
-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 ca67530..776ea92 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();