correct compass widget initialization icon

This commit is contained in:
sonora 2014-08-29 13:45:25 +02:00
parent 3335d2d7c5
commit 64da6b408e

View file

@ -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;
}