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