summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2015-12-12 21:59:51 -0800
committerSteve Kondik <steve@cyngn.com>2016-11-02 12:24:49 -0700
commit3139a33a1b5e83442ca26e7261539c0c0dcfeef4 (patch)
treea4f66ce1afc9058f82592e89a3fde8be3bcd8422 /src/com
parent954bfe147d94f35996dcc057946a9779a18e6580 (diff)
downloadandroid_packages_apps_Snap-3139a33a1b5e83442ca26e7261539c0c0dcfeef4.tar.gz
android_packages_apps_Snap-3139a33a1b5e83442ca26e7261539c0c0dcfeef4.tar.bz2
android_packages_apps_Snap-3139a33a1b5e83442ca26e7261539c0c0dcfeef4.zip
SnapdragonCamera: Set camera parameters before restarting preview
Ensure that all of the updated camera parameters are propagated to the camera HAL prior to restarting the preview. This fixes the split-exposure observed when turning ZSL off and on without exiting the app. Change-Id: I392549ae7cc75b150e01cf8b635d2e3f1ad6ffb9 Signed-off-by: Sultanxda <sultanxda@gmail.com>
Diffstat (limited to 'src/com')
-rwxr-xr-xsrc/com/android/camera/PhotoModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index 738fe1d4f..ce8cd19d0 100755
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -4727,6 +4727,7 @@ public class PhotoModule
mLocationManager.recordLocation(recordLocation);
if(needRestart()){
Log.v(TAG, "Restarting Preview... Camera Mode Changed");
+ setCameraParameters(UPDATE_PARAM_PREFERENCE);
stopPreview();
startPreview();
setCameraState(IDLE);