back out for now
This commit is contained in:
parent
c50a5764c3
commit
af63d3ed55
1 changed files with 3 additions and 8 deletions
|
@ -80,19 +80,14 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio
|
||||||
} else {
|
} else {
|
||||||
getTargets().setStartPoint(latlon, true, null);
|
getTargets().setStartPoint(latlon, true, null);
|
||||||
//TODO: Hardy: Looks like there is a small bug somewhere: Re-selecting the "From" or "To" point during an ongoing route calculation (and only then) seems to only interrupt the ongoing route calculation. but not restart it, if (and only if) a route origin other than "Current position" is set. (Looks like this case is treated like a mere position update in our RoutingHelper, so normally no complete re-calculation is needed.)
|
//TODO: Hardy: Looks like there is a small bug somewhere: Re-selecting the "From" or "To" point during an ongoing route calculation (and only then) seems to only interrupt the ongoing route calculation. but not restart it, if (and only if) a route origin other than "Current position" is set. (Looks like this case is treated like a mere position update in our RoutingHelper, so normally no complete re-calculation is needed.)
|
||||||
//-Test code only--
|
|
||||||
//Try force resuming route re-caculation if stopped due to Issue2515
|
|
||||||
//if (!routingHelper.isRouteBeingCalculated()) {
|
|
||||||
// getTargets().setStartPoint(latlon, true, null);
|
|
||||||
//}
|
|
||||||
//-----------------
|
|
||||||
}
|
}
|
||||||
contextMenu.setLocation(latlon, null);
|
contextMenu.setLocation(latlon, null);
|
||||||
showDialog();
|
showDialog();
|
||||||
//-Test code only--
|
//-Test code only--
|
||||||
//Try force resuming route re-caculation if stopped due to Issue2515
|
//Try force resuming route re-caculation if stopped due to Issue2515
|
||||||
routingHelper.recalculateRouteDueToSettingsChange();
|
// interesting: putting one or more of the next lines here destroys the alternating "interrupted route calculation won't re-start" behavior and causes the route calculation to NEVER re-start!
|
||||||
routingHelper.recalculateRouteDueToSettingsChange();
|
//routingHelper.recalculateRouteDueToSettingsChange();
|
||||||
|
//routingHelper.recalculateRouteDueToSettingsChange();
|
||||||
//-----------------
|
//-----------------
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue