This commit is contained in:
PavelRatushny 2017-07-27 18:23:49 +03:00 committed by Alexey Kulish
parent c5b82a136c
commit f2ce6550e4

View file

@ -149,6 +149,9 @@ public class SendPoiDialogFragment extends DialogFragment {
if (p.getGroup() == OsmPoint.Group.POI) {
OsmPoint.Action action = p.getAction();
String type = ((OpenstreetmapPoint) p).getEntity().getTag(EditPoiData.POI_TYPE_TAG);
if (type == null) {
continue;
}
PoiType localizedPoiType = allTranslatedSubTypes.get(type.toLowerCase().trim());
if (localizedPoiType != null) {
type = Algorithms.capitalizeFirstLetter(localizedPoiType.getKeyName().replace('_', ' '));