diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index ff093bee6f..bd0e992dd5 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -366,7 +366,7 @@ public class MapActivity extends AccessibleActivity { public void changeZoom(int stp){ // delta = Math.round(delta * OsmandMapTileView.ZOOM_DELTA) * OsmandMapTileView.ZOOM_DELTA_1; boolean changeLocation = true; - if (settings.AUTO_ZOOM_MAP.get() == settings.AutoZoomMap.NONE) { + if (settings.AUTO_ZOOM_MAP.get() == AutoZoomMap.NONE) { changeLocation = false; } final int newZoom = mapView.getZoom() + stp; diff --git a/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java b/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java index 2cfb5db71d..8155bdd72b 100644 --- a/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java +++ b/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java @@ -80,7 +80,7 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc public void updateLocation(Location location) { if (mapView != null) { if (isMapLinkedToLocation() && location != null) { - if (settings.AUTO_ZOOM_MAP.get() != settings.AutoZoomMap.NONE) { + if (settings.AUTO_ZOOM_MAP.get() != AutoZoomMap.NONE) { autozoom(location); } int currentMapRotation = settings.ROTATE_MAP.get();