diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java index ddc6badafb..38310b7f3d 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuController.java @@ -204,7 +204,7 @@ public abstract class MenuController extends BaseMenuController { protected void addMyLocationToPlainItems(LatLon latLon) { addPlainMenuItem(R.drawable.ic_action_get_my_location, PointDescription.getLocationName(getMapActivity(), - latLon.getLatitude(), latLon.getLongitude(), true).replaceAll("\n", ""), false, false, null); + latLon.getLatitude(), latLon.getLongitude(), true).replaceAll("\n", " "), false, false, null); } public PointDescription getPointDescription() { diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index 1a8241217c..a6019079f7 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -465,7 +465,7 @@ 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, 0, false, null); + .replaceAll("\n", " "), 0, false, 0, false, null); } public void buildAmenityRow(View view, AmenityInfoRow info) { diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java index 67596a9cdc..7af16c8361 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java @@ -73,6 +73,6 @@ 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, 0, false, null); + .replaceAll("\n", " "), 0, false, 0, false, null); } } diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index ea9fb2c471..7666639d61 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -992,7 +992,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC private void runSearch(String text) { showProgressBar(); - SearchSettings settings = searchUICore.getPhrase().getSettings(); + SearchSettings settings = searchUICore.getSearchSettings(); if (settings.getRadiusLevel() != 1) { searchUICore.updateSettings(settings.setRadiusLevel(1)); }