From c983e6b24ee532a920112f4b411b0504d832db9e Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 4 Apr 2017 10:06:46 +0200 Subject: [PATCH] Reword route too long --- OsmAnd/res/values/strings.xml | 2 +- OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 4 ++-- .../osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 076f331dd7..92d67d042a 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -1225,7 +1225,7 @@ Please calculate the route first Simulate using calculated route Simulate using GPX track - OsmAnd offline routing may take very long (or sometimes not work) for points more than 200km apart. You may want to add intermediate destinations for better performance. + Route is possibly too long to calculate. Please add intermediate destinations, if route is not suggested in 10 minutes. No auto zoom To close-up To mid-range diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 27b1dd9ea2..2c81f026fb 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -459,7 +459,7 @@ public class MapActivityActions implements DialogProvider { mapActivity.getMapLayers().getMapControlsLayer().showDialog(); } if (targets.hasTooLongDistanceToNavigate()) { - app.showToastMessage(R.string.route_is_too_long); + app.showToastMessage(R.string.route_is_too_long_v2); } } @@ -488,7 +488,7 @@ public class MapActivityActions implements DialogProvider { mapActivity.getMapLayers().getMapControlsLayer().showDialog(); } if (targets.hasTooLongDistanceToNavigate()) { - app.showToastMessage(R.string.route_is_too_long); + app.showToastMessage(R.string.route_is_too_long_v2); } } diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java index 59e249cfa2..94c54eddbc 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java @@ -221,7 +221,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener { main.findViewById(R.id.DurationIcon).setVisibility(View.GONE); main.findViewById(R.id.InfoDistance).setVisibility(View.GONE); main.findViewById(R.id.InfoDuration).setVisibility(View.GONE); - textView.setText(R.string.route_is_too_long); + textView.setText(R.string.route_is_too_long_v2); textView.setVisibility(View.VISIBLE); iconView.setImageDrawable(mapActivity.getMyApplication().getIconsCache().getIcon(R.drawable.ic_warning, isLight())); } else {