Zoom should not change sync with map

This commit is contained in:
vshcherb 2014-03-01 00:51:39 +02:00
parent 8ad5280fb0
commit 92dad044ec

View file

@ -367,10 +367,10 @@ public class MapActivity extends AccessibleActivity {
public void changeZoom(int stp){ public void changeZoom(int stp){
// delta = Math.round(delta * OsmandMapTileView.ZOOM_DELTA) * OsmandMapTileView.ZOOM_DELTA_1; // delta = Math.round(delta * OsmandMapTileView.ZOOM_DELTA) * OsmandMapTileView.ZOOM_DELTA_1;
boolean changeLocation = true; boolean changeLocation = false;
if (settings.AUTO_ZOOM_MAP.get() == AutoZoomMap.NONE) { // if (settings.AUTO_ZOOM_MAP.get() == AutoZoomMap.NONE) {
changeLocation = false; // changeLocation = false;
} // }
final int newZoom = mapView.getZoom() + stp; final int newZoom = mapView.getZoom() + stp;
mapView.getAnimatedDraggingThread().startZooming(newZoom, changeLocation); mapView.getAnimatedDraggingThread().startZooming(newZoom, changeLocation);
if (app.accessibilityEnabled()) if (app.accessibilityEnabled())