Update poi type immediately
This commit is contained in:
parent
adf414222b
commit
6de3ce5513
1 changed files with 5 additions and 3 deletions
|
@ -252,6 +252,10 @@ public class EditPoiDialogFragment extends DialogFragment {
|
|||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
if (!getEditPoiData().isInEdit()) {
|
||||
PoiType pt = getEditPoiData().getAllTranslatedSubTypes().get(s.toString());
|
||||
if(pt != null) {
|
||||
poiTypeTextInputLayout.setHint(pt.getCategory().getTranslation());
|
||||
}
|
||||
getEditPoiData().updateTypeTag(s.toString());
|
||||
}
|
||||
}
|
||||
|
@ -513,9 +517,7 @@ public class EditPoiDialogFragment extends DialogFragment {
|
|||
//noinspection SuspiciousMethodCalls
|
||||
PoiType pt = subCategories.get(item);
|
||||
String keyName = pt.getKeyName();
|
||||
if(pt != null) {
|
||||
poiTypeTextInputLayout.setHint(pt.getCategory().getTranslation());
|
||||
}
|
||||
poiTypeTextInputLayout.setHint(pt.getCategory().getTranslation());
|
||||
poiTypeEditText.setText(keyName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue