From 3674025076de966c2809ed412ecb45af840d9143 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 27 Dec 2016 21:13:34 +0100 Subject: [PATCH] avoid false touches during operations --- 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 07a4d6f479..20d20e652e 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -855,12 +855,12 @@ public class OsmandMapTileView implements IMapDownloaderCallback { if (event.getAction() == MotionEvent.ACTION_DOWN) { animatedDraggingThread.stopAnimating(); } - for (int i = layers.size() - 1; i >= 0; i--) { - layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox()); - } final boolean isMultiTouch = multiTouchSupport.onTouchEvent(event); doubleTapScaleDetector.onTouchEvent(event); if (!isMultiTouch && !doubleTapScaleDetector.isInZoomMode()) { + for (int i = layers.size() - 1; i >= 0; i--) { + layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox()); + } gestureDetector.onTouchEvent(event); } return true;