add default type for null category

This commit is contained in:
Chumva 2018-05-29 16:06:05 +03:00
parent 62a895a4a5
commit ff4b3f4046

View file

@ -146,6 +146,8 @@ public class AdvancedEditPoiFragment extends BaseOsmAndFragment
PoiCategory category = getData().getPoiCategory();
if (category != null) {
amenityTagTextView.setText(category.getDefaultTag());
} else {
amenityTagTextView.setText(R.string.tag_poi_amenity);
}
amenityTextView.setText(getData().getPoiTypeString());
}