summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2017-01-18 15:43:43 +0800
committerArne Coucheron <arco68@gmail.com>2017-06-13 07:16:39 +0200
commitbdb5068e459f6ce80d3ac6478513dfa445dee696 (patch)
tree29dbcd2c448af4b3460c94d6a598645b389bb217
parent3de435d905d4b94714fe858cdb891f8a5e7e9634 (diff)
downloadandroid_packages_apps_Snap-bdb5068e459f6ce80d3ac6478513dfa445dee696.zip
android_packages_apps_Snap-bdb5068e459f6ce80d3ac6478513dfa445dee696.tar.gz
android_packages_apps_Snap-bdb5068e459f6ce80d3ac6478513dfa445dee696.tar.bz2
SnapdragonCamera: Avoid cancel AF shortly after trigger
When it's focusing, don't cancel auto foucus. Change-Id: Ib1d660ac6a99da56d70cf437dad3126a641956d1
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/FocusOverlayManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/FocusOverlayManager.java b/src/com/android/camera/FocusOverlayManager.java
index f87f9fc..22d2869 100644..100755
--- a/src/com/android/camera/FocusOverlayManager.java
+++ b/src/com/android/camera/FocusOverlayManager.java
@@ -225,7 +225,7 @@ public class FocusOverlayManager {
if (needAutoFocusCall()) {
// User releases half-pressed focus key.
- if (mState == STATE_FOCUSING || mState == STATE_SUCCESS
+ if (mState == STATE_SUCCESS
|| mState == STATE_FAIL) {
cancelAutoFocus();
}