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
|
@Override
|
||||||
public void afterTextChanged(Editable s) {
|
public void afterTextChanged(Editable s) {
|
||||||
if (!getEditPoiData().isInEdit()) {
|
if (!getEditPoiData().isInEdit()) {
|
||||||
|
PoiType pt = getEditPoiData().getAllTranslatedSubTypes().get(s.toString());
|
||||||
|
if(pt != null) {
|
||||||
|
poiTypeTextInputLayout.setHint(pt.getCategory().getTranslation());
|
||||||
|
}
|
||||||
getEditPoiData().updateTypeTag(s.toString());
|
getEditPoiData().updateTypeTag(s.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -513,9 +517,7 @@ public class EditPoiDialogFragment extends DialogFragment {
|
||||||
//noinspection SuspiciousMethodCalls
|
//noinspection SuspiciousMethodCalls
|
||||||
PoiType pt = subCategories.get(item);
|
PoiType pt = subCategories.get(item);
|
||||||
String keyName = pt.getKeyName();
|
String keyName = pt.getKeyName();
|
||||||
if(pt != null) {
|
poiTypeTextInputLayout.setHint(pt.getCategory().getTranslation());
|
||||||
poiTypeTextInputLayout.setHint(pt.getCategory().getTranslation());
|
|
||||||
}
|
|
||||||
poiTypeEditText.setText(keyName);
|
poiTypeEditText.setText(keyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue