summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-08-31 14:52:12 -0700
committerSteve Kondik <steve@cyngn.com>2016-11-13 23:41:05 -0800
commitd5211e7b1efb8b3c64a302fbe79799f353e272a1 (patch)
treea515ff3c78e5d141dd8435522f85356e31bcd36b
parent5e049a353ba2675149241240baa0808cf3a8b9d5 (diff)
downloadandroid_packages_apps_Snap-d5211e7b1efb8b3c64a302fbe79799f353e272a1.zip
android_packages_apps_Snap-d5211e7b1efb8b3c64a302fbe79799f353e272a1.tar.gz
android_packages_apps_Snap-d5211e7b1efb8b3c64a302fbe79799f353e272a1.tar.bz2
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
-rw-r--r--src/com/android/camera/CaptureModule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 9d48689..0fade10 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;