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:14:05 +0800
commit8a45a901215d7e54b13f72cef289ac8216fc44bf (patch)
treebba4f154c066d1fb990c1031e01eba489d07d463 /src
parenteba671dc09fd92c345868655f7a20571b09d1e95 (diff)
downloadandroid_packages_apps_Snap-8a45a901215d7e54b13f72cef289ac8216fc44bf.tar.gz
android_packages_apps_Snap-8a45a901215d7e54b13f72cef289ac8216fc44bf.tar.bz2
android_packages_apps_Snap-8a45a901215d7e54b13f72cef289ac8216fc44bf.zip
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
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 42f94b6f5..6fedf48d0 100644..100755
--- 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() {