Immediately hide keyboard

This commit is contained in:
M66B 2024-06-11 22:14:30 +02:00
parent c320c2f716
commit 13396cb100
1 changed files with 6 additions and 7 deletions

View File

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