From d5211e7b1efb8b3c64a302fbe79799f353e272a1 Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Wed, 31 Aug 2016 14:52:12 -0700 Subject: SnapdragonCamera: resolve front camera preview freeze issue In camera2 implementation, there is a bug that camera ID was defined incorrectly and cause front camera preview turned off. Changing the default camera ID to invalid number and let setting manager update it to avoid wrong camera ID. Change-Id: I0c7f1638394bcddb7c30d55556afe6b5a6666e51 CRs-Fixed: 1061987 --- src/com/android/camera/CaptureModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com') diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 9d48689e1..0fade1003 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -117,8 +117,8 @@ public class CaptureModule implements CameraModule, PhotoController, public static final int BAYER_MODE = 1; public static final int MONO_MODE = 2; public static final int BAYER_ID = 0; - public static int MONO_ID = 1; - public static int FRONT_ID = 1; + public static int MONO_ID = -1; + public static int FRONT_ID = -1; private static final int BACK_MODE = 0; private static final int FRONT_MODE = 1; private static final int CANCEL_TOUCH_FOCUS_DELAY = 3000; -- cgit v1.2.3