From 2982bebf71204b1aaa6f37c5075533c12e7e15e1 Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Thu, 30 Apr 2020 12:18:38 +0300 Subject: [PATCH] Fix #8510 --- OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index 4adf60c2c5..1e09f2889f 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -816,9 +816,11 @@ public class MapControlsLayer extends OsmandMapLayer { compassHud.forceHideCompass = forceHideCompass; compassHud.updateVisibility(!forceHideCompass && shouldShowCompass()); - if (layersHud.setIconResId(settings.getApplicationMode().getMapIconRes())) { + ApplicationMode appMode = settings.getApplicationMode(); + if (layersHud.setIconResId(appMode.getIconRes())) { layersHud.update(app, isNight); } + layersHud.setIconColorId(appMode.getIconColorInfo().getColor(isNight)); layersHud.updateVisibility(!routeDialogOpened && !trackDialogOpened && !isInMeasurementToolMode() && !isInPlanRouteMode() && !contextMenuOpened && !isInChoosingRoutesMode() && !isInWaypointsChoosingMode()); quickSearchHud.updateVisibility(!routeDialogOpened && !trackDialogOpened && !isInMeasurementToolMode() && !isInPlanRouteMode()