Merge pull request #954 from Zahnstocher/fixRotation-patch

Fix rotation on MapActivity resume
This commit is contained in:
vshcherb 2014-11-17 10:07:35 +01:00
commit 0e7c555fee

View file

@ -148,7 +148,7 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
public void updateSettings(){ public void updateSettings(){
if (mapView != null) { if (mapView != null) {
if (settings.ROTATE_MAP.get() != OsmandSettings.ROTATE_MAP_COMPASS || routePlanningMode) { if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_NONE || routePlanningMode) {
mapView.setRotate(0); mapView.setRotate(0);
} }
mapView.setMapPosition(settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_BEARING mapView.setMapPosition(settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_BEARING