Correct action for 'stop routing' while route is still being calculated

This commit is contained in:
sonora 2012-01-31 00:08:53 +01:00
parent 706d59527d
commit 3a46d08e01

View file

@ -1125,7 +1125,7 @@ public class MapActivity extends TrackedActivity implements IMapLocationListener
return true; return true;
case R.id.map_navigate_to_point: case R.id.map_navigate_to_point:
if (mapLayers.getNavigationLayer().getPointToNavigate() != null) { if (mapLayers.getNavigationLayer().getPointToNavigate() != null) {
if(routingHelper.isRouteCalculated()){ if(routingHelper.isRouteCalculated() || routingHelper.isFollowingMode()){
routingHelper.setFinalAndCurrentLocation(null, routingHelper.getCurrentLocation(), routingHelper.getCurrentGPXRoute()); routingHelper.setFinalAndCurrentLocation(null, routingHelper.getCurrentLocation(), routingHelper.getCurrentGPXRoute());
} else { } else {
navigateToPoint(null); navigateToPoint(null);