summaryrefslogtreecommitdiff
path: root/src/it
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-17 17:11:26 +0400
committerAndrew Dolgov <[email protected]>2012-10-17 17:11:26 +0400
commit50aa792e3215b0d26df65bf5b358b50587685e1a (patch)
treec6294790b54560e5823792938b7806cef2cc41eb /src/it
parentf3d4e3e31c488e5ded0a457308c746913aecef8c (diff)
prevent tap to change pages when paging is disabled
Diffstat (limited to 'src/it')
-rw-r--r--src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java b/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java
index c189cf8..f3399fd 100644
--- a/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java
+++ b/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java
@@ -121,11 +121,8 @@ public class ImageViewTouch extends ImageViewTouchBase {
if ( !mScaleDetector.isInProgress() ) mCurrentScaleFactor = scale;
if (mScaleChangedListener != null) {
- RectF bitmapRect = getBitmapRect();
-
- boolean widthFits = getWidth() >= (bitmapRect.right - bitmapRect.left);
-
- mScaleChangedListener.onScaleChanged(mCurrentScaleFactor, widthFits);
+ RectF bitmapRect = getBitmapRect();
+ mScaleChangedListener.onScaleChanged(mCurrentScaleFactor, getWidth() >= (bitmapRect.right - bitmapRect.left));
}
}