Merge pull request #719 from Bars107/master
fixed bug http://jira.osmand.net:8085/secure/RapidBoard.jspa?rapidView=3&view=planning&selectedIssue=AND-92
This commit is contained in:
commit
bf0b443d46
1 changed files with 4 additions and 0 deletions
|
@ -288,7 +288,11 @@ public class RoutingHelper {
|
|||
if (calculateRoute) {
|
||||
recalculateRouteInBackground(false, currentLocation, finalLocation, intermediatePoints, currentGPXRoute,
|
||||
previousRoute.isCalculated() ? previousRoute : null);
|
||||
} else if (currentRunningJob != null && currentRunningJob instanceof RouteRecalculationThread) {
|
||||
RouteRecalculationThread thread = (RouteRecalculationThread) currentRunningJob;
|
||||
thread.stopCalculation();
|
||||
}
|
||||
|
||||
double projectDist = mode != null && mode.hasFastSpeed() ? posTolerance : posTolerance / 2;
|
||||
if(returnUpdatedLocation && locationProjection != null && currentLocation.distanceTo(locationProjection) < projectDist) {
|
||||
return locationProjection;
|
||||
|
|
Loading…
Reference in a new issue