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