summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-10-17 14:19:21 -0700
committerJohn Reck <jreck@google.com>2012-10-17 14:27:58 -0700
commit903c190fc10e7cf5c95bccc7cf0220375e25ea00 (patch)
treeb2fb0e501e10af75d2f81af90bcfcf7158f510e4 /src/com/android/gallery3d/ui
parent25b4822bdf644054ee8871b5f091065075351510 (diff)
downloadandroid_packages_apps_Snap-903c190fc10e7cf5c95bccc7cf0220375e25ea00.tar.gz
android_packages_apps_Snap-903c190fc10e7cf5c95bccc7cf0220375e25ea00.tar.bz2
android_packages_apps_Snap-903c190fc10e7cf5c95bccc7cf0220375e25ea00.zip
Change double tap scale from 1.5 to 1.0
Bug: 7287834 Change-Id: I43312825c1494e385a36a3783765de33d2b691e2
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/PhotoView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java
index edd7c72e3..747a34cbf 100644
--- a/src/com/android/gallery3d/ui/PhotoView.java
+++ b/src/com/android/gallery3d/ui/PhotoView.java
@@ -1013,8 +1013,8 @@ public class PhotoView extends GLView {
// onDoubleTap happened on the second ACTION_DOWN.
// We need to ignore the next UP event.
mIgnoreUpEvent = true;
- if (scale <= 1.0f || controller.isAtMinimalScale()) {
- controller.zoomIn(x, y, Math.max(1.5f, scale * 1.5f));
+ if (scale <= .75f || controller.isAtMinimalScale()) {
+ controller.zoomIn(x, y, Math.max(1.0f, scale * 1.5f));
} else {
controller.resetToFullView();
}