coordinates fix
This commit is contained in:
parent
3206cc4f39
commit
d2587bab97
1 changed files with 3 additions and 2 deletions
|
@ -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<Integer, String> 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue