re-link map after two fger tap zoom

This commit is contained in:
sonora 2017-01-03 20:57:50 +01:00
parent 73beffb846
commit b4f96432a8

View file

@ -220,7 +220,11 @@ 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();
getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), false); getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), false);
if (mapLinked) {
MapActivity.getMapViewTrackingUtilities().setMapLinkedToLocation(true);
}
} }
} }
}; };