Fix bug with wrong eta in toast

This commit is contained in:
Victor Shcherb 2015-05-27 00:11:45 +02:00
parent e3a891e0b2
commit d057da858a

View file

@ -595,7 +595,7 @@ public class RoutingHelper {
if (showToast.value) {
String msg = app.getString(R.string.new_route_calculated_dist) + ": "
+ OsmAndFormatter.getFormattedDistance(res.getWholeDistance(), app);
if (res.getRoutingTime() != 0f) {
if (OsmandPlugin.isDevelopment() && res.getRoutingTime() != 0f) {
msg += " (" + Algorithms.formatDuration((int) res.getRoutingTime()) + ")";
}
app.showToastMessage(msg);