From 93dbe540b562a7140dbad1268805cb79252d58bd Mon Sep 17 00:00:00 2001 From: PaulStets Date: Thu, 1 Feb 2018 15:55:21 +0200 Subject: [PATCH] Correct distance format --- .../osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index c8278e2314..253666f7bd 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -1274,7 +1274,7 @@ public class RouteInfoWidgetsFactory { locimgId = R.drawable.warnings_pedestrian; } } else if(alarm.getType() == AlarmInfoType.TUNNEL) { - DecimalFormat df = new DecimalFormat("0.#"); + DecimalFormat df = new DecimalFormat("#.#"); if(settings.DRIVING_REGION.get().americanSigns){ locimgId = R.drawable.warnings_tunnel_us; text = df.format(alarm.getFloatValue()) +" mi";