Use PointDescription#getLocationNamePlain instead of DecimalFormat
This commit is contained in:
parent
255fdd5533
commit
6f96fa61ac
1 changed files with 3 additions and 4 deletions
|
@ -46,6 +46,7 @@ import net.osmand.AndroidUtils;
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.ValueHolder;
|
import net.osmand.ValueHolder;
|
||||||
import net.osmand.data.LatLon;
|
import net.osmand.data.LatLon;
|
||||||
|
import net.osmand.data.PointDescription;
|
||||||
import net.osmand.plus.ApplicationMode;
|
import net.osmand.plus.ApplicationMode;
|
||||||
import net.osmand.plus.ContextMenuAdapter;
|
import net.osmand.plus.ContextMenuAdapter;
|
||||||
import net.osmand.plus.ContextMenuAdapter.OnRowItemClick;
|
import net.osmand.plus.ContextMenuAdapter.OnRowItemClick;
|
||||||
|
@ -93,7 +94,6 @@ import net.osmand.plus.views.controls.SwipeDismissListViewTouchListener.Undoable
|
||||||
import net.osmand.plus.views.mapwidgets.MapWidgetRegistry;
|
import net.osmand.plus.views.mapwidgets.MapWidgetRegistry;
|
||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
import java.text.DecimalFormat;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
@ -1516,9 +1516,8 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
|
||||||
start.start = false;
|
start.start = false;
|
||||||
start.intermediate = startInd != allTargets.size() - 1;
|
start.intermediate = startInd != allTargets.size() - 1;
|
||||||
if (targetPointsHelper.getPointToStart() == null) {
|
if (targetPointsHelper.getPointToStart() == null) {
|
||||||
DecimalFormat format = new DecimalFormat("#.#####");
|
start.getOriginalPointDescription().setName(PointDescription
|
||||||
start.getOriginalPointDescription().setName(format.format(start.getLatitude())
|
.getLocationNamePlain(getMyApplication(), start.getLatitude(), start.getLongitude()));
|
||||||
+ ", " + format.format(start.getLongitude()));
|
|
||||||
}
|
}
|
||||||
first.start = true;
|
first.start = true;
|
||||||
first.intermediate = false;
|
first.intermediate = false;
|
||||||
|
|
Loading…
Reference in a new issue