Modify getting routing helper

This commit is contained in:
PavelRatushnyi 2017-10-14 18:48:10 +03:00
parent 7fd953d8d9
commit 5185f92dad

View file

@ -80,7 +80,7 @@ public class NavStartStopAction extends QuickAction {
@Override
public int getIconRes(Context context) {
if (context instanceof MapActivity) {
RoutingHelper helper = ((MapActivity) context).getMyApplication().getRoutingHelper();
RoutingHelper helper = ((MapActivity) context).getRoutingHelper();
if (!helper.isRoutePlanningMode() && !helper.isFollowingMode()) {
return ((MapActivity) context).getMapActions().getRouteMode(null).getSmallIconDark();
}