fix keyboards after changing keyboard option

This commit is contained in:
Chumva 2018-06-19 16:51:51 +03:00
parent b0db8cd235
commit b43bac38c3

View file

@ -878,11 +878,13 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
if (focusedView != null) { if (focusedView != null) {
if (useOsmandKeyboard) { if (useOsmandKeyboard) {
AndroidUtils.hideSoftKeyboard(getActivity(), focusedView); AndroidUtils.hideSoftKeyboard(getActivity(), focusedView);
isSoftKeyboardShown = false;
} else { } else {
new Handler().postDelayed(new Runnable() { new Handler().postDelayed(new Runnable() {
@Override @Override
public void run() { public void run() {
AndroidUtils.showSoftKeyboard(focusedView); AndroidUtils.showSoftKeyboard(focusedView);
isSoftKeyboardShown = true;
} }
}, 200); }, 200);
} }