add default type for null category
This commit is contained in:
parent
2724ce3b00
commit
22b766c2d2
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue