Hide route calculated toast after recalc
This commit is contained in:
parent
4c91c95721
commit
14b3bcead7
1 changed files with 1 additions and 2 deletions
|
@ -857,10 +857,9 @@ public class RoutingHelper {
|
|||
l.newRouteIsCalculated(newRoute, showToast);
|
||||
}
|
||||
}
|
||||
if (showToast.value && OsmandPlugin.isDevelopment()) {
|
||||
if (showToast.value && newRoute && OsmandPlugin.isDevelopment()) {
|
||||
String msg = app.getString(R.string.new_route_calculated_dist_dbg,
|
||||
OsmAndFormatter.getFormattedDistance(res.getWholeDistance(), app),
|
||||
|
||||
((int)res.getRoutingTime()) + " sec",
|
||||
res.getCalculateTime(), res.getVisitedSegments(), res.getLoadedTiles());
|
||||
app.showToastMessage(msg);
|
||||
|
|
Loading…
Reference in a new issue