diff options
Diffstat (limited to 'src/it/sephiroth/android')
-rw-r--r-- | src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java | 7 |
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)); } } |