From d057da858afec8fbf5190d224148305bf6c13633 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 27 May 2015 00:11:45 +0200 Subject: [PATCH] Fix bug with wrong eta in toast --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 1904ad4862..03779856ca 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -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);