Fix issues related to poi editing

This commit is contained in:
Victor Shcherb 2015-11-18 21:47:46 +01:00
parent b4981eecb5
commit 02319947f7

View file

@ -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();
poiTypeEditText.setText(item.toString());
setAdapterForPoiTypeEditText();
poiTypeEditText.setText(keyName);
}
}
@Override