do not display 'temporarily switched to CloudMade' message for GPX routes
This commit is contained in:
parent
c33a003dc7
commit
fa7a3c2996
1 changed files with 2 additions and 2 deletions
|
@ -462,8 +462,8 @@ public class RoutingHelper {
|
||||||
if (serviceToUse == RouteService.OSMAND && !settings.USE_OSMAND_ROUTING_SERVICE_ALWAYS.get()) {
|
if (serviceToUse == RouteService.OSMAND && !settings.USE_OSMAND_ROUTING_SERVICE_ALWAYS.get()) {
|
||||||
double distance = MapUtils.getDistance(end, start.getLatitude(), start.getLongitude());
|
double distance = MapUtils.getDistance(end, start.getLatitude(), start.getLongitude());
|
||||||
if (distance > DISTANCE_TO_USE_OSMAND_ROUTER) {
|
if (distance > DISTANCE_TO_USE_OSMAND_ROUTER) {
|
||||||
// display 'temporarily switched to CloudMade' message only once per error wait period
|
// display 'temporarily switched to CloudMade' message only once per error wait period and not for GPX routes
|
||||||
if (evalWaitInterval == 3000) {
|
if (evalWaitInterval == 3000 && settings.FOLLOW_THE_GPX_ROUTE == null) {
|
||||||
showMessage(context.getString(R.string.osmand_routing_experimental), Toast.LENGTH_LONG);
|
showMessage(context.getString(R.string.osmand_routing_experimental), Toast.LENGTH_LONG);
|
||||||
}
|
}
|
||||||
serviceToUse = RouteService.CLOUDMADE;
|
serviceToUse = RouteService.CLOUDMADE;
|
||||||
|
|
Loading…
Reference in a new issue