summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2012-10-09 12:33:49 -0700
committerSteve Kondik <shade@chemlab.org>2012-10-09 12:33:49 -0700
commit773a6723980dc4737e8aecbb205c1158022d86e0 (patch)
tree0ddb711f6b6cd735b01279bf967221c6fc38ee12
parent830908ee532a8a03062293a1647a189dff4fa3c1 (diff)
parentae0453756c1b8807743823a021ada539a77ed4d7 (diff)
downloadandroid_packages_apps_Gallery2-773a6723980dc4737e8aecbb205c1158022d86e0.tar.gz
android_packages_apps_Gallery2-773a6723980dc4737e8aecbb205c1158022d86e0.tar.bz2
android_packages_apps_Gallery2-773a6723980dc4737e8aecbb205c1158022d86e0.zip
Merge branch 'jb-mr0-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp-merge
-rw-r--r--src/com/android/gallery3d/ui/PhotoView.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java
index e44905dbf..821032b1a 100644
--- a/src/com/android/gallery3d/ui/PhotoView.java
+++ b/src/com/android/gallery3d/ui/PhotoView.java
@@ -916,8 +916,6 @@ public class PhotoView extends GLView {
private boolean mModeChanged;
// If this scaling gesture should be ignored.
private boolean mIgnoreScalingGesture;
- // If we have seen a scaling gesture.
- private boolean mSeenScaling;
// whether the down action happened while the view is scrolling.
private boolean mDownInScrolling;
// If we should ignore all gestures other than onSingleTapUp.
@@ -1022,7 +1020,7 @@ public class PhotoView extends GLView {
@Override
public boolean onFling(float velocityX, float velocityY) {
if (mIgnoreSwipingGesture) return true;
- if (mSeenScaling) return true;
+ if (mModeChanged) return true;
if (swipeImages(velocityX, velocityY)) {
mIgnoreUpEvent = true;
} else {
@@ -1094,8 +1092,6 @@ public class PhotoView extends GLView {
// mode and at minimal scale.
mCanChangeMode = mFilmMode
|| mPositionController.isAtMinimalScale();
- mModeChanged = false;
- mSeenScaling = true;
mAccScale = 1f;
return true;
}
@@ -1172,7 +1168,7 @@ public class PhotoView extends GLView {
checkHideUndoBar(UNDO_BAR_TOUCHED);
mDeltaY = 0;
- mSeenScaling = false;
+ mModeChanged = false;
if (mIgnoreSwipingGesture) return;