get types correctly
This commit is contained in:
parent
09e5c04a5b
commit
1c9e59a8cc
1 changed files with 4 additions and 1 deletions
|
@ -779,7 +779,10 @@ public class RoutingHelper {
|
|||
//This should fix route-recalculation if settings change during ongoing calculation
|
||||
clearCurrentRoute(finalLocation, intermediatePoints);
|
||||
// Try re-initialize start point to check impact on Issue 2515
|
||||
lastFixedLocation = TargetPoint.create(settings.getPointToStart(), settings.getStartPointDescription());
|
||||
if (settings.getPointToStart() != null) {
|
||||
lastFixedLocation.setLatitude(settings.getPointToStart().getLatitude());
|
||||
lastFixedLocation.setLongitude(settings.getPointToStart().getLongitude());
|
||||
}
|
||||
recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route, true, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue