summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2016-11-25 16:00:53 -0800
committerBruno Martins <bgcngm@gmail.com>2018-11-20 12:32:17 +0000
commit85e22dc702e8b24271e78391995aa7bc1bcbed31 (patch)
treee66b5f0c9c5549602117635b80c8a48ebcc7e66b
parent84608da292b6b275b44a8fa9021d487f0b7e25de (diff)
downloadandroid_packages_apps_Snap-85e22dc702e8b24271e78391995aa7bc1bcbed31.tar.gz
android_packages_apps_Snap-85e22dc702e8b24271e78391995aa7bc1bcbed31.tar.bz2
android_packages_apps_Snap-85e22dc702e8b24271e78391995aa7bc1bcbed31.zip
SnapdragonCamera: Fix shutter button clicks in rapid succession getting ignored
Due to this check, the shutter button would be disabled until each photo would finish processing. This results in the shutter button getting disabled for quite a long time when ZSL isn't used, forcing the user to wait until the previous shot is finished before requesting a new shot. Fix the HDR check so that shutter button clicks in quick succession work. There is code in place to handle button clicks in rapid succession, so this is fine. Change-Id: Ifc36a22e4ec3a1be24e5a9b40c3fc682e82605b3 Signed-off-by: Alex Naidis <alex.naidis@linux.com>
-rw-r--r--src/com/android/camera/PhotoModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index d385162a4..c1ff0c0b7 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -1837,7 +1837,7 @@ public class PhotoModule
// We don't want user to press the button again while taking a
// multi-second HDR photo. For longshot, no need to disable.
- if (mCameraState != LONGSHOT) {
+ if (CameraUtil.SCENE_MODE_HDR.equals(mSceneMode)) {
mUI.enableShutter(false);
}