correct compass widget initialization icon
This commit is contained in:
parent
3335d2d7c5
commit
64da6b408e
1 changed files with 7 additions and 1 deletions
|
@ -332,7 +332,13 @@ public class MapInfoWidgetsFactory {
|
|||
map.getMapViewTrackingUtilities().switchRotateMapMode();
|
||||
}
|
||||
});
|
||||
compassView.setImageDrawable(compass);
|
||||
if (app.getSettings().ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_NONE) {
|
||||
compassView.setImageDrawable(compassNiu);
|
||||
} else if (app.getSettings().ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_BEARING) {
|
||||
compassView.setImageDrawable(compassBearing);
|
||||
} else {
|
||||
compassView.setImageDrawable(compass);
|
||||
}
|
||||
return compassView;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue