re-link map after two fger tap zoom
This commit is contained in:
parent
73beffb846
commit
b4f96432a8
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue