fix build

This commit is contained in:
sonora 2017-01-03 21:16:37 +01:00
parent 38c4f418ef
commit d935afe8f3

View file

@ -220,10 +220,10 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
public void onTwoFingerTap() { public void onTwoFingerTap() {
//afterTwoFingersTap = true; //afterTwoFingersTap = true;
if (isZoomingAllowed(getZoom(), -1.1f)) { if (isZoomingAllowed(getZoom(), -1.1f)) {
boolean mapLinked = MapActivity.getMapViewTrackingUtilities().isMapLinkedToLocation(); boolean mapLinked = ctx.getMapViewTrackingUtilities().isMapLinkedToLocation();
getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), false); getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), false);
if (mapLinked) { if (mapLinked) {
MapActivity.getMapViewTrackingUtilities().setMapLinkedToLocation(true); ctx.getMapViewTrackingUtilities().setMapLinkedToLocation(true);
} }
} }
} }