Do not show toast in snap to road mode

This commit is contained in:
Alex 2017-08-27 20:20:42 +03:00
parent fcfe307ec2
commit 77cbb79deb
2 changed files with 4 additions and 2 deletions

View file

@ -259,6 +259,7 @@ public class MeasurementEditingContext {
LatLon end = new LatLon(currentPair.second.getLatitude(), currentPair.second.getLongitude());
final RouteCalculationParams params = new RouteCalculationParams();
params.inSnapToRoadMode = true;
params.start = start;
params.end = end;
params.leftSide = settings.DRIVING_REGION.get().leftHandDriving;

View file

@ -880,8 +880,9 @@ public class RoutingHelper {
currentRunningJob = null;
}
if(res.isCalculated()){
setNewRoute(prev, res, params.start);
if (!params.inSnapToRoadMode) {
setNewRoute(prev, res, params.start);
}
} else if (onlineSourceWithoutInternet) {
lastRouteCalcError = app.getString(R.string.error_calculating_route)
+ ":\n" + app.getString(R.string.internet_connection_required_for_online_route);