From 8a45a901215d7e54b13f72cef289ac8216fc44bf Mon Sep 17 00:00:00 2001 From: junjiez Date: Thu, 1 Dec 2016 16:52:15 +0800 Subject: SnapdragonCamera:Camera reinit with wrong id When we swith sceneMode, Camera will call getMainCameraId() to get the camera id to reinit,but the camera id is wrong because valus in SettingsManager is null, so use init() instead, it will get camera id from preference. Change-Id: I1d7dc95ca5231ab1f98ae64ac5ffd0f6aae9bf7c CRs-Fixed: 1088851 --- src/com/android/camera/CaptureModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/com/android/camera/CaptureModule.java (limited to 'src') diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java old mode 100644 new mode 100755 index 42f94b6f5..6fedf48d0 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -984,7 +984,7 @@ public class CaptureModule implements CameraModule, PhotoController, } public void reinit() { - mSettingsManager.reinit(getMainCameraId()); + mSettingsManager.init(); } public boolean isRefocus() { -- cgit v1.2.3