Hide route calculated toast after recalc

This commit is contained in:
max-klaus 2020-07-27 14:14:28 +03:00
parent 4c91c95721
commit 14b3bcead7

View file

@ -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);