add default type for null category

This commit is contained in:
Chumva 2018-05-29 16:06:05 +03:00
parent 2724ce3b00
commit 22b766c2d2

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());
}