Modify getting routing helper
This commit is contained in:
parent
7fd953d8d9
commit
5185f92dad
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue