mirror of https://github.com/M66B/FairEmail.git
Post show/hide keyboard
This commit is contained in:
parent
1a00102301
commit
7f96e25ff8
|
@ -2090,21 +2090,23 @@ public class Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void showKeyboard(final View view) {
|
static void showKeyboard(final View view) {
|
||||||
try {
|
view.post(new RunnableEx("showKeyboard") {
|
||||||
Log.i("showKeyboard view=" + view);
|
@Override
|
||||||
new SoftwareKeyboardControllerCompat(view).show();
|
protected void delegate() {
|
||||||
} catch (Throwable ex) {
|
Log.i("showKeyboard view=" + view);
|
||||||
Log.e(ex);
|
new SoftwareKeyboardControllerCompat(view).show();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hideKeyboard(final View view) {
|
static void hideKeyboard(final View view) {
|
||||||
try {
|
view.post(new RunnableEx("hideKeyboard") {
|
||||||
Log.i("hideKeyboard view=" + view);
|
@Override
|
||||||
new SoftwareKeyboardControllerCompat(view).hide();
|
protected void delegate() {
|
||||||
} catch (Throwable ex) {
|
Log.i("hideKeyboard view=" + view);
|
||||||
Log.e(ex);
|
new SoftwareKeyboardControllerCompat(view).hide();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isKeyboardVisible(final View view) {
|
static boolean isKeyboardVisible(final View view) {
|
||||||
|
|
Loading…
Reference in New Issue