From 98aee665328c60ccc087a2b412274031868fd6df Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 11 Oct 2017 17:54:58 +0300 Subject: [PATCH] Fix #4306 --- .../mapcontextmenu/controllers/AmenityMenuController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java index e9a988283b..55f712ba66 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java @@ -11,6 +11,7 @@ import net.osmand.data.TransportStop; import net.osmand.osm.PoiCategory; import net.osmand.osm.PoiFilter; import net.osmand.osm.PoiType; +import net.osmand.plus.OsmandSettings; import net.osmand.plus.R; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.mapcontextmenu.MapContextMenu; @@ -104,6 +105,12 @@ public class AmenityMenuController extends MenuController { return true; } + @Override + public String getNameStr() { + OsmandSettings settings = getMapActivity().getMyApplication().getSettings(); + return amenity.getName(settings.MAP_PREFERRED_LOCALE.get(), settings.MAP_TRANSLITERATE_NAMES.get()); + } + @Override public String getTypeStr() { return getTypeStr(amenity);