From 255fdd5533bd3416c17737ad91adac14831bac9b Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 26 Jan 2018 18:33:56 +0200 Subject: [PATCH] Fix format for latitude and longitude --- OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java index 9eca8830e8..97b463d1c0 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java @@ -93,6 +93,7 @@ import net.osmand.plus.views.controls.SwipeDismissListViewTouchListener.Undoable import net.osmand.plus.views.mapwidgets.MapWidgetRegistry; import java.lang.ref.WeakReference; +import java.text.DecimalFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -1515,7 +1516,9 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis start.start = false; start.intermediate = startInd != allTargets.size() - 1; if (targetPointsHelper.getPointToStart() == null) { - start.getOriginalPointDescription().setName(start.getLatitude() + ", " + start.getLongitude()); + DecimalFormat format = new DecimalFormat("#.#####"); + start.getOriginalPointDescription().setName(format.format(start.getLatitude()) + + ", " + format.format(start.getLongitude())); } first.start = true; first.intermediate = false;