summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhuw <zhuw@codeaurora.org>2018-01-03 15:34:00 +0800
committerArne Coucheron <arco68@gmail.com>2018-04-22 00:23:43 +0200
commita0f6bf7b88c8f3afeead645980edceca634e3d16 (patch)
tree7dcc4251c7523b01cc3b5b7a178e16e029cf79fc
parenta83f85c3061d4c7e6bfb6cbeabd1cee6198f3307 (diff)
downloadandroid_packages_apps_Snap-a0f6bf7b88c8f3afeead645980edceca634e3d16.zip
android_packages_apps_Snap-a0f6bf7b88c8f3afeead645980edceca634e3d16.tar.gz
android_packages_apps_Snap-a0f6bf7b88c8f3afeead645980edceca634e3d16.tar.bz2
Fix snapshot failed with logical camera
if ZSl is enabled , use takeZSLpicture and return Change-Id: I501b40218daef5a5f2847426df00ab18743ee63f
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index b425057..e8e02e0 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1421,6 +1421,9 @@ public class CaptureModule implements CameraModule, PhotoController,
lockFocus(MONO_ID);
break;
case SWITCH_MODE:
+ if (takeZSLPicture(SWITCH_ID)) {
+ return;
+ }
lockFocus(SWITCH_ID);
break;
}