From 69155389ec975821fcee9976e3096c96e47bfed5 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 31 Dec 2016 16:10:59 +0100 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 53d5df6d21..2cf82c229d 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1061,13 +1061,13 @@ public class OsmandMapTileView implements IMapDownloaderCallback { if (baseZoom > getMaxZoom()) { return false; } - if (baseZoom > getMaxZoom() - 1 && dz >= 1) { + if (baseZoom > getMaxZoom() - 1 && dz > 1) { return false; } if (baseZoom < getMinZoom()) { return false; } - if (baseZoom < getMinZoom() + 1 && dz <= -1) { + if (baseZoom < getMinZoom() + 1 && dz < -1) { return false; } return true; @@ -1114,7 +1114,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { - if (!(multiTouchSupport.isInZoomMode()) { + if (!multiTouchSupport.isInZoomMode()) { dragToAnimate(e2.getX() + distanceX, e2.getY() + distanceY, e2.getX(), e2.getY(), true); } return true;