This commit is contained in:
Alexey Kulish 2017-10-11 17:54:58 +03:00
parent 0560505af3
commit 98aee66532

View file

@ -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);