From d2587bab976b84ddca2b8b4625767650e32a3db7 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Tue, 2 Jul 2019 18:14:20 +0300 Subject: [PATCH] coordinates fix --- .../src/net/osmand/plus/mapcontextmenu/MenuController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java index 64f493f838..0a54dd5a33 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java @@ -288,10 +288,11 @@ public abstract class MenuController extends BaseMenuController implements Colla protected void addMyLocationToPlainItems(LatLon latlon) { final MapActivity mapActivity = getMapActivity(); if (mapActivity != null) { - String f = PointDescription.formatToHumanString(mapActivity, mapActivity.getMyApplication().getSettings().COORDINATES_FORMAT.get()); Map locationData = PointDescription.getLocationData(mapActivity, latlon.getLatitude(), latlon.getLongitude(), true); + String title = locationData.get(PointDescription.LOCATION_LIST_HEADER); + locationData.remove(PointDescription.LOCATION_LIST_HEADER); CollapsableView cv = builder.getLocationCollapsableView(locationData); - addPlainMenuItem(R.drawable.ic_action_get_my_location, locationData.get(f).replace("\n", " "), true, false, true, cv, null); + addPlainMenuItem(R.drawable.ic_action_get_my_location, title, false, false, true, cv, null); } }