From bfa24f66a5e0819baece6c89c9846dec67a1e990 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 4 Jan 2017 17:02:23 +0100 Subject: [PATCH] try solution in principle --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 58206269d9..c9d78ffe15 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -167,7 +167,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { } // ///////////////////////////// INITIALIZING UI PART /////////////////////////////////// - public void init(MapActivity ctx, int w, int h) { + public void init(final MapActivity ctx, int w, int h) { application = (OsmandApplication) ctx.getApplicationContext(); settings = application.getSettings(); @@ -222,9 +222,9 @@ public class OsmandMapTileView implements IMapDownloaderCallback { //afterTwoFingersTap = true; if (isZoomingAllowed(getZoom(), -1.1f)) { getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), false); - if (wasMapLinkedBeforeGesture) { - activity.getMapViewTrackingUtilities().setMapLinkedToLocation(true); - } + //if (wasMapLinkedBeforeGesture) { + ctx.getMapViewTrackingUtilities().setMapLinkedToLocation(true); + //} } } }; @@ -1083,7 +1083,6 @@ public class OsmandMapTileView implements IMapDownloaderCallback { private class MapTileViewOnGestureListener extends SimpleOnGestureListener { @Override public boolean onDown(MotionEvent e) { - wasMapLinkedBeforeGesture = activity.getMapViewTrackingUtilities().isMapLinkedToLocation(); return false; }