summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-02-18 16:42:58 +0100
committerArne Coucheron <arco68@gmail.com>2018-01-27 00:41:42 +0100
commite6387ff03b18ed93b53b6357cf34ccf8c201efae (patch)
tree3226406bee55942e90dc8279d116c030010c11d4
parent57748cb5f97a73277ca9cb2e7b2f7722311616ad (diff)
downloadandroid_packages_apps_Snap-e6387ff03b18ed93b53b6357cf34ccf8c201efae.tar.gz
android_packages_apps_Snap-e6387ff03b18ed93b53b6357cf34ccf8c201efae.tar.bz2
android_packages_apps_Snap-e6387ff03b18ed93b53b6357cf34ccf8c201efae.zip
Focus only when tapping the preview
Calling onSingleTapUp() from onScroll() is causing Snap to issue a focus request for every touch movement, including the gestures to open the menu and the gallery. Change-Id: If913607735add13c1af8e0882748d4800e4e10f9
-rw-r--r--src/com/android/camera/PreviewGestures.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/PreviewGestures.java b/src/com/android/camera/PreviewGestures.java
index 8a0c09b80..48d972f7c 100644
--- a/src/com/android/camera/PreviewGestures.java
+++ b/src/com/android/camera/PreviewGestures.java
@@ -101,9 +101,9 @@ public class PreviewGestures
if (mCaptureUI != null)
mCaptureUI.openSettingsMenu();
return true;
- } else {
- return onSingleTapUp(e2);
}
+
+ return false;
}
private boolean isLeftSwipe(int orientation, int deltaX, int deltaY) {