Fix issues related to poi editing
This commit is contained in:
parent
b4981eecb5
commit
02319947f7
1 changed files with 2 additions and 8 deletions
|
@ -515,14 +515,8 @@ public class EditPoiDialogFragment extends DialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
Object item = parent.getAdapter().getItem(position);
|
Object item = parent.getAdapter().getItem(position);
|
||||||
//noinspection SuspiciousMethodCalls
|
poiTypeEditText.setText(item.toString());
|
||||||
if (subCategories.containsKey(item.toString().toLowerCase())) {
|
|
||||||
//noinspection SuspiciousMethodCalls
|
|
||||||
PoiType pt = subCategories.get(item);
|
|
||||||
String keyName = pt.getKeyName();
|
|
||||||
setAdapterForPoiTypeEditText();
|
setAdapterForPoiTypeEditText();
|
||||||
poiTypeEditText.setText(keyName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue