diff options
author | Jay Wang <jaywang@codeaurora.org> | 2016-08-31 14:52:12 -0700 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2017-01-04 22:00:41 +0200 |
commit | 78d79c7db51c5142066c669ecc614c5f9e87b490 (patch) | |
tree | f15e15ab30a3553068e1beb2f4f240c2f6e7b7e1 /src/com/android/camera | |
parent | 372bbea0923667f23c74c2909aa2ef01b66e3989 (diff) | |
download | android_packages_apps_Snap-78d79c7db51c5142066c669ecc614c5f9e87b490.tar.gz android_packages_apps_Snap-78d79c7db51c5142066c669ecc614c5f9e87b490.tar.bz2 android_packages_apps_Snap-78d79c7db51c5142066c669ecc614c5f9e87b490.zip |
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
Diffstat (limited to 'src/com/android/camera')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index e519096d0..03b6dd5a8 100755 --- 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; |