From a0f6bf7b88c8f3afeead645980edceca634e3d16 Mon Sep 17 00:00:00 2001 From: zhuw Date: Wed, 3 Jan 2018 15:34:00 +0800 Subject: Fix snapshot failed with logical camera if ZSl is enabled , use takeZSLpicture and return Change-Id: I501b40218daef5a5f2847426df00ab18743ee63f --- src/com/android/camera/CaptureModule.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index b42505769..e8e02e034 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; } -- cgit v1.2.3