summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2016-12-01 16:52:15 +0800
committerjunjiez <junjiez@codeaurora.org>2016-12-01 17:13:10 +0800
commitf17edf8628ec6a0460c979ca0ff49ee4f8cadd2b (patch)
tree0ca98d8f35078a9d2b824624bf9b8bb1504a5811 /src
parent86eca94a17aeff7fe1723ecca9a3545292c68de1 (diff)
downloadandroid_packages_apps_Snap-f17edf8628ec6a0460c979ca0ff49ee4f8cadd2b.tar.gz
android_packages_apps_Snap-f17edf8628ec6a0460c979ca0ff49ee4f8cadd2b.tar.bz2
android_packages_apps_Snap-f17edf8628ec6a0460c979ca0ff49ee4f8cadd2b.zip
napdragonCamera: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: Ice43e764eab9e7f0e79bc7eaad60a0dd177a517e CRs-Fixed: 1088851
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/CaptureModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 755164325..412e2bb2b 100644..100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -920,7 +920,7 @@ public class CaptureModule implements CameraModule, PhotoController,
public void reinit() {
setCurrentMode();
- mSettingsManager.reinit(getMainCameraId());
+ mSettingsManager.init();
}
public boolean isRefocus() {