Fix bug with wrong eta in toast
This commit is contained in:
parent
e3a891e0b2
commit
d057da858a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue