From b65e46126a4f5812215beb73643c2cbc8ad2949c Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Fri, 13 Oct 2017 19:09:29 +0300 Subject: [PATCH] Change icons for start stop navigation in quick action --- .../plus/quickaction/actions/NavStartStopAction.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/NavStartStopAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/NavStartStopAction.java index d1edca5ca6..ea67d04735 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/NavStartStopAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/NavStartStopAction.java @@ -80,12 +80,14 @@ public class NavStartStopAction extends QuickAction { @Override public int getIconRes(Context context) { if (context instanceof MapActivity) { - RoutingHelper helper = ((MapActivity) context).getRoutingHelper(); - if (helper.isPauseNavigation() || helper.isFollowingMode()) { - return R.drawable.ic_action_target; - } - return R.drawable.ic_action_start_navigation; + return ((MapActivity) context).getMyApplication().getSettings().getApplicationMode().getMapIconId(); } return super.getIconRes(context); } + + @Override + public boolean isActionWithSlash(OsmandApplication application) { + RoutingHelper helper = application.getRoutingHelper(); + return helper.isPauseNavigation() || helper.isFollowingMode(); + } } \ No newline at end of file