add default type for null category
This commit is contained in:
parent
62a895a4a5
commit
ff4b3f4046
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ public class AdvancedEditPoiFragment extends BaseOsmAndFragment
|
||||||
PoiCategory category = getData().getPoiCategory();
|
PoiCategory category = getData().getPoiCategory();
|
||||||
if (category != null) {
|
if (category != null) {
|
||||||
amenityTagTextView.setText(category.getDefaultTag());
|
amenityTagTextView.setText(category.getDefaultTag());
|
||||||
|
} else {
|
||||||
|
amenityTagTextView.setText(R.string.tag_poi_amenity);
|
||||||
}
|
}
|
||||||
amenityTextView.setText(getData().getPoiTypeString());
|
amenityTextView.setText(getData().getPoiTypeString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue