Merge branch 'master' of ssh://github.com/osmandapp/Osmand

This commit is contained in:
Victor Shcherb 2015-01-08 01:16:04 +01:00
commit c50a5764c3
3 changed files with 7 additions and 4 deletions

View file

@ -125,7 +125,7 @@ public class AvoidSpecificRoads {
} }
}); });
bld.setPositiveButton(R.string.default_buttons_ok, null); bld.setPositiveButton(R.string.close, null);
bld.show(); bld.show();
} }

View file

@ -772,7 +772,7 @@ public class RoutingHelper {
} }
public void recalculateRouteDueToSettingsChange() { 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); clearCurrentRoute(finalLocation, intermediatePoints);
recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route, recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route,
true, false); true, false);

View file

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