Merge pull request #954 from Zahnstocher/fixRotation-patch
Fix rotation on MapActivity resume
This commit is contained in:
commit
0e7c555fee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue