summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2016-11-25 16:00:53 -0800
committerChippa-a <vusal1372@gmail.com>2019-10-25 15:55:25 +0300
commitbbd723b12a51f1141e425ac5f62a2abe3df0a4e8 (patch)
tree4c0527309470540cf11ebcde054b3baabbeda0b7
parentc4fd1cd00b2d751e6891fd0fb69ab858f4752684 (diff)
downloadandroid_packages_apps_Snap-bbd723b12a51f1141e425ac5f62a2abe3df0a4e8.tar.gz
android_packages_apps_Snap-bbd723b12a51f1141e425ac5f62a2abe3df0a4e8.tar.bz2
android_packages_apps_Snap-bbd723b12a51f1141e425ac5f62a2abe3df0a4e8.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>
-rwxr-xr-xsrc/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 9322f9e73..06bff865a 100755
--- 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);
}