From 22b766c2d2be3d3e7ab4dc668894f5c81f9de998 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 29 May 2018 16:06:05 +0300 Subject: [PATCH] add default type for null category --- OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java index 21003595a5..dab14a0284 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java @@ -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()); }