diff options
author | lion0738 <lion0738@naver.com> | 2016-01-10 16:55:01 +0900 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-26 01:07:58 +0100 |
commit | 42c86d06b6347ada95e7a82f2caeaeddaa99f019 (patch) | |
tree | 34fa79fcadda88746abdaa0a91cf90d7e7ebccd5 | |
parent | 46dc5bd9f1530e8ca0e820037ffa30e3d1c99d15 (diff) | |
download | android_packages_apps_Snap-42c86d06b6347ada95e7a82f2caeaeddaa99f019.tar.gz android_packages_apps_Snap-42c86d06b6347ada95e7a82f2caeaeddaa99f019.tar.bz2 android_packages_apps_Snap-42c86d06b6347ada95e7a82f2caeaeddaa99f019.zip |
Snap: Set parameters before starting preview
Old parameters are used when grabbing focus mode.
Camera parameters should be set to FocusOverlayManager before starting preview.
Change-Id: I908559e1c2003be47b486996b0ec016b78107468
-rw-r--r-- | src/com/android/camera/VideoModule.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 81c7291a1..8d8485f92 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -3086,12 +3086,6 @@ public class VideoModule implements CameraModule, mPreferences.setLocalId(mActivity, mCameraId); CameraSettings.upgradeLocalPreferences(mPreferences.getLocal()); openCamera(); - readVideoPreferences(); - mUI.applySurfaceChange(VideoUI.SURFACE_STATUS.SURFACE_VIEW); - startPreview(); - initializeVideoSnapshot(); - resizeForPreviewAspectRatio(); - initializeVideoControl(); CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; boolean mirror = (info.facing == CameraInfo.CAMERA_FACING_FRONT); @@ -3099,6 +3093,13 @@ public class VideoModule implements CameraModule, mFocusManager.setMirror(mirror); mFocusManager.setParameters(mParameters); + readVideoPreferences(); + mUI.applySurfaceChange(VideoUI.SURFACE_STATUS.SURFACE_VIEW); + startPreview(); + initializeVideoSnapshot(); + resizeForPreviewAspectRatio(); + initializeVideoControl(); + initializeCapabilities(); // From onResume |