From 6657f67e81d8995f607ee5771e1c8ab3a4bb8c3a Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 4 Jan 2017 18:15:55 +0100 Subject: [PATCH] fix MapActivity --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 8271a86026..b01cd23c8b 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -159,7 +159,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { private TwoFingerTapDetector twoFingersTapDetector; //private boolean afterTwoFingersTap = false; private boolean afterDoubleTap = false; - protected boolean wasMapLinkedBeforeGesture = false; + private boolean wasMapLinkedBeforeGesture = false; public OsmandMapTileView(MapActivity activity, int w, int h) { this.activity = activity; @@ -1083,7 +1083,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { private class MapTileViewOnGestureListener extends SimpleOnGestureListener { @Override public boolean onDown(MotionEvent e) { - wasMapLinkedBeforeGesture = (MapActivity activity).getMapViewTrackingUtilities().isMapLinkedToLocation(); + wasMapLinkedBeforeGesture = ((MapActivity) activity).getMapViewTrackingUtilities().isMapLinkedToLocation(); return false; }