Do not show toast in snap to road mode
This commit is contained in:
parent
fcfe307ec2
commit
77cbb79deb
2 changed files with 4 additions and 2 deletions
|
@ -259,6 +259,7 @@ public class MeasurementEditingContext {
|
||||||
LatLon end = new LatLon(currentPair.second.getLatitude(), currentPair.second.getLongitude());
|
LatLon end = new LatLon(currentPair.second.getLatitude(), currentPair.second.getLongitude());
|
||||||
|
|
||||||
final RouteCalculationParams params = new RouteCalculationParams();
|
final RouteCalculationParams params = new RouteCalculationParams();
|
||||||
|
params.inSnapToRoadMode = true;
|
||||||
params.start = start;
|
params.start = start;
|
||||||
params.end = end;
|
params.end = end;
|
||||||
params.leftSide = settings.DRIVING_REGION.get().leftHandDriving;
|
params.leftSide = settings.DRIVING_REGION.get().leftHandDriving;
|
||||||
|
|
|
@ -880,8 +880,9 @@ public class RoutingHelper {
|
||||||
currentRunningJob = null;
|
currentRunningJob = null;
|
||||||
}
|
}
|
||||||
if(res.isCalculated()){
|
if(res.isCalculated()){
|
||||||
setNewRoute(prev, res, params.start);
|
if (!params.inSnapToRoadMode) {
|
||||||
|
setNewRoute(prev, res, params.start);
|
||||||
|
}
|
||||||
} else if (onlineSourceWithoutInternet) {
|
} else if (onlineSourceWithoutInternet) {
|
||||||
lastRouteCalcError = app.getString(R.string.error_calculating_route)
|
lastRouteCalcError = app.getString(R.string.error_calculating_route)
|
||||||
+ ":\n" + app.getString(R.string.internet_connection_required_for_online_route);
|
+ ":\n" + app.getString(R.string.internet_connection_required_for_online_route);
|
||||||
|
|
Loading…
Reference in a new issue