summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlex1911 <dedsa2002@gmail.com>2017-02-08 22:57:12 +0300
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-11 01:32:39 +0000
commit33c7742af160ad441c3e73805eaa999bd316f3be (patch)
tree2253b2f40901921ca92459702dab668154244b05
parentc2d36954c583fb17a2bca5d30ee281cccb42e212 (diff)
downloadandroid_packages_apps_Snap-33c7742af160ad441c3e73805eaa999bd316f3be.zip
android_packages_apps_Snap-33c7742af160ad441c3e73805eaa999bd316f3be.tar.gz
android_packages_apps_Snap-33c7742af160ad441c3e73805eaa999bd316f3be.tar.bz2
Snap: VideoModule: properly update focus settings when switching between cameras
Change-Id: I4c769bb4f080b8144b2571d218807bf197187a54 (cherry picked from commit 8613b0502046742d80cb9eee7cd5e9eea2ee356f)
-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();