From 9a396765d9f36821586ae7172242b826cac4257e Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 10 Jan 2016 19:52:53 +0100 Subject: [PATCH] fix when start nav icon appears --- OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index bf81706627..77cfb9f8fa 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -493,7 +493,7 @@ public class MapControlsLayer extends OsmandMapLayer { updateMyLocation(rh, dialogOpened); boolean showButtons = (showRouteCalculationControls || !routeFollowingMode); //routePlanningBtn.setIconResId(routeFollowingMode ? R.drawable.ic_action_gabout_dark : R.drawable.map_directions); - if (routePlanningMode || routeFollowingMode) { + if ((routePlanningMode || routeFollowingMode) && mapActivity.getMyApplication().getTargetPointsHelper().getPointToNavigate() != null) { routePlanningBtn.setIconResId(R.drawable.map_start_navigation); routePlanningBtn.setIconColorId(R.color.color_myloc_distance); } else {