Show coordinates only in selected format (Fixes #3708)
This commit is contained in:
parent
b33f24b222
commit
47ee7899d1
3 changed files with 11 additions and 11 deletions
|
@ -221,9 +221,9 @@ public abstract class MenuController extends BaseMenuController {
|
|||
OsmandSettings st = ((OsmandApplication) getMapActivity().getApplicationContext()).getSettings();
|
||||
addPlainMenuItem(R.drawable.ic_action_get_my_location, PointDescription.getLocationName(getMapActivity(),
|
||||
latLon.getLatitude(), latLon.getLongitude(), true).replaceAll("\n", " "), false, false, null);
|
||||
if (st.COORDINATES_FORMAT.get() != PointDescription.OLC_FORMAT)
|
||||
addPlainMenuItem(R.drawable.ic_action_get_my_location, PointDescription.getLocationOlcName(
|
||||
latLon.getLatitude(), latLon.getLongitude()).replaceAll("\n", " "), false, false, null);
|
||||
//if (st.COORDINATES_FORMAT.get() != PointDescription.OLC_FORMAT)
|
||||
// addPlainMenuItem(R.drawable.ic_action_get_my_location, PointDescription.getLocationOlcName(
|
||||
// latLon.getLatitude(), latLon.getLongitude()).replaceAll("\n", " "), false, false, null);
|
||||
}
|
||||
|
||||
public PointDescription getPointDescription() {
|
||||
|
|
|
@ -493,10 +493,10 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
|||
buildRow(view, R.drawable.ic_action_get_my_location, PointDescription.getLocationName(app,
|
||||
amenity.getLocation().getLatitude(), amenity.getLocation().getLongitude(), true)
|
||||
.replaceAll("\n", " "), 0, false, null, false, 0, false, null);
|
||||
if (st.COORDINATES_FORMAT.get() != PointDescription.OLC_FORMAT)
|
||||
buildRow(view, R.drawable.ic_action_get_my_location, PointDescription.getLocationOlcName(
|
||||
amenity.getLocation().getLatitude(), amenity.getLocation().getLongitude())
|
||||
.replaceAll("\n", " "), 0, false, null, false, 0, false, null);
|
||||
//if (st.COORDINATES_FORMAT.get() != PointDescription.OLC_FORMAT)
|
||||
// buildRow(view, R.drawable.ic_action_get_my_location, PointDescription.getLocationOlcName(
|
||||
// amenity.getLocation().getLatitude(), amenity.getLocation().getLongitude())
|
||||
// .replaceAll("\n", " "), 0, false, null, false, 0, false, null);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -78,9 +78,9 @@ public class EditPOIMenuBuilder extends MenuBuilder {
|
|||
buildRow(view, R.drawable.ic_action_get_my_location, PointDescription.getLocationName(app,
|
||||
osmPoint.getLatitude(), osmPoint.getLongitude(), true)
|
||||
.replaceAll("\n", " "), 0, false, null, false, 0, false, null);
|
||||
if (st.COORDINATES_FORMAT.get() != PointDescription.OLC_FORMAT)
|
||||
buildRow(view, R.drawable.ic_action_get_my_location, PointDescription.getLocationOlcName(
|
||||
osmPoint.getLatitude(), osmPoint.getLongitude())
|
||||
.replaceAll("\n", " "), 0, false, null, false, 0, false, null);
|
||||
//if (st.COORDINATES_FORMAT.get() != PointDescription.OLC_FORMAT)
|
||||
// buildRow(view, R.drawable.ic_action_get_my_location, PointDescription.getLocationOlcName(
|
||||
// osmPoint.getLatitude(), osmPoint.getLongitude())
|
||||
// .replaceAll("\n", " "), 0, false, null, false, 0, false, null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue