Fix npe
This commit is contained in:
parent
d983309242
commit
684e5ddf15
1 changed files with 15 additions and 15 deletions
|
@ -406,6 +406,7 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
|
|||
}
|
||||
|
||||
public void switchRotateMapMode(){
|
||||
if (mapView != null) {
|
||||
String rotMode = app.getString(R.string.rotate_map_none_opt);
|
||||
if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_NONE && mapView.getRotate() != 0) {
|
||||
// reset manual rotation
|
||||
|
@ -422,7 +423,6 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
|
|||
rotMode = app.getString(R.string.rotate_map_to_bearing) + ":\n" + rotMode;
|
||||
app.showShortToastMessage(rotMode);
|
||||
updateSettings();
|
||||
if(mapView != null) {
|
||||
mapView.refreshMap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue