summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2016-11-25 16:00:53 -0800
committerArne Coucheron <arco68@gmail.com>2018-01-27 00:41:43 +0100
commita05e15cd2d1b7a0cd1c39425c0e2421d5ce16025 (patch)
tree2a99311a77bb9f3d37424dd108a9eadce4533a06
parenta8297bf8ff246d98f52a564dbbd1d452a863bba8 (diff)
downloadandroid_packages_apps_Snap-a05e15cd2d1b7a0cd1c39425c0e2421d5ce16025.zip
android_packages_apps_Snap-a05e15cd2d1b7a0cd1c39425c0e2421d5ce16025.tar.gz
android_packages_apps_Snap-a05e15cd2d1b7a0cd1c39425c0e2421d5ce16025.tar.bz2
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 5777944..d5bdfd0 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -1951,7 +1951,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);
}