Fix #4306
This commit is contained in:
parent
0560505af3
commit
98aee66532
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue