From 64da6b408e4bf626b9b838ff1eb7140bdf95bcf4 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 29 Aug 2014 13:45:25 +0200 Subject: [PATCH] correct compass widget initialization icon --- .../plus/views/mapwidgets/MapInfoWidgetsFactory.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java index f63a83bb33..9784d82ea2 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java @@ -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; }