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:
vshcherb 2014-06-27 02:09:16 +02:00
commit bf0b443d46

View file

@ -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;