summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlex1911 <dedsa2002@gmail.com>2017-02-08 22:57:12 +0300
committerArtem Borisov <dedsa2002@gmail.com>2017-02-08 20:01:17 +0000
commit8613b0502046742d80cb9eee7cd5e9eea2ee356f (patch)
treeabb120a0a686dfd55a2debfa95c10155532b26a3
parent8c64fae391fff390bac978c6bd639434bc1b19a5 (diff)
downloadandroid_packages_apps_Snap-8613b0502046742d80cb9eee7cd5e9eea2ee356f.zip
android_packages_apps_Snap-8613b0502046742d80cb9eee7cd5e9eea2ee356f.tar.gz
android_packages_apps_Snap-8613b0502046742d80cb9eee7cd5e9eea2ee356f.tar.bz2
Snap: VideoModule: properly update focus settings when switching between cameras
Change-Id: I4c769bb4f080b8144b2571d218807bf197187a54
-rw-r--r--src/com/android/camera/VideoModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 8c530a9..ca67530 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -3058,6 +3058,7 @@ public class VideoModule extends BaseModule<VideoUI> implements
CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
boolean mirror = (info.facing == CameraInfo.CAMERA_FACING_FRONT);
mFocusManager.setMirror(mirror);
+ mFocusManager.setParameters(mInitialParams);
setCameraParameters(UPDATE_PARAM_ALL);
startPreview();