Immediately hide keyboard

master
M66B 4 weeks ago
parent c320c2f716
commit 13396cb100

@ -2111,13 +2111,12 @@ public class Helper {
} }
static void hideKeyboard(final View view) { static void hideKeyboard(final View view) {
view.post(new RunnableEx("hideKeyboard") { try {
@Override
protected void delegate() {
Log.i("hideKeyboard view=" + view); Log.i("hideKeyboard view=" + view);
new SoftwareKeyboardControllerCompat(view).hide(); new SoftwareKeyboardControllerCompat(view).hide();
} catch (Throwable ex) {
Log.e(ex);
} }
});
} }
static boolean isKeyboardVisible(final View view) { static boolean isKeyboardVisible(final View view) {

Loading…
Cancel
Save