Fix format for latitude and longitude

This commit is contained in:
alex 2018-01-26 18:33:56 +02:00
parent d662b44c19
commit 255fdd5533

View file

@ -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;