From 02319947f7cc5b2df984da1ec07d44ccf4da2bd7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 18 Nov 2015 21:47:46 +0100 Subject: [PATCH] Fix issues related to poi editing --- .../net/osmand/plus/osmedit/EditPoiDialogFragment.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java index dd989f1f6e..9a8c05879c 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java @@ -515,14 +515,8 @@ public class EditPoiDialogFragment extends DialogFragment { @Override public void onItemSelected(AdapterView parent, View view, int position, long id) { Object item = parent.getAdapter().getItem(position); - //noinspection SuspiciousMethodCalls - if (subCategories.containsKey(item.toString().toLowerCase())) { - //noinspection SuspiciousMethodCalls - PoiType pt = subCategories.get(item); - String keyName = pt.getKeyName(); - setAdapterForPoiTypeEditText(); - poiTypeEditText.setText(keyName); - } + poiTypeEditText.setText(item.toString()); + setAdapterForPoiTypeEditText(); } @Override