Correct action for 'stop routing' while route is still being calculated
This commit is contained in:
parent
706d59527d
commit
3a46d08e01
1 changed files with 1 additions and 1 deletions
|
@ -1125,7 +1125,7 @@ public class MapActivity extends TrackedActivity implements IMapLocationListener
|
|||
return true;
|
||||
case R.id.map_navigate_to_point:
|
||||
if (mapLayers.getNavigationLayer().getPointToNavigate() != null) {
|
||||
if(routingHelper.isRouteCalculated()){
|
||||
if(routingHelper.isRouteCalculated() || routingHelper.isFollowingMode()){
|
||||
routingHelper.setFinalAndCurrentLocation(null, routingHelper.getCurrentLocation(), routingHelper.getCurrentGPXRoute());
|
||||
} else {
|
||||
navigateToPoint(null);
|
||||
|
|
Loading…
Reference in a new issue