fix MapActivity

This commit is contained in:
sonora 2017-01-04 18:15:55 +01:00
parent beeb4af9ac
commit 6657f67e81

View file

@ -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;
}