Try fix other half of Issue 2515

This commit is contained in:
sonora 2015-01-08 00:54:50 +01:00
parent e69bbb25d3
commit aae4c48c59
2 changed files with 5 additions and 3 deletions

View file

@ -772,7 +772,7 @@ public class RoutingHelper {
}
public void recalculateRouteDueToSettingsChange() {
//See if this fixes route-recalculation if settings change during ongoing calculation
//This should fix route-recalculation if settings change during ongoing calculation
clearCurrentRoute(finalLocation, intermediatePoints);
recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route,
true, false);

View file

@ -85,12 +85,14 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio
//if (!routingHelper.isRouteBeingCalculated()) {
// getTargets().setStartPoint(latlon, true, null);
//}
//or like this:
// routingHelper.recalculateRouteDueToSettingsChange();
//-----------------
}
contextMenu.setLocation(latlon, null);
showDialog();
//-Test code only--
//Try force resuming route re-caculation if stopped due to Issue2515
routingHelper.recalculateRouteDueToSettingsChange();
//-----------------
return true;
}
return super.onSingleTap(point, tileBox);