Merge branch 'vespr-wallet-fix/imm'
This commit is contained in:
commit
fd96023945
|
@ -1525,7 +1525,17 @@ final public class InAppWebView extends InputAwareWebView implements InAppWebVie
|
|||
public void run() {
|
||||
InputMethodManager imm =
|
||||
(InputMethodManager) getContext().getSystemService(INPUT_METHOD_SERVICE);
|
||||
if (containerView != null && imm != null && !imm.isAcceptingText()) {
|
||||
|
||||
boolean isAcceptingText = false;
|
||||
if (imm != null) {
|
||||
try {
|
||||
// imm.isAcceptingText() seems to sometimes crash on some devices
|
||||
isAcceptingText = imm.isAcceptingText();
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
if (containerView != null && imm != null && !isAcceptingText) {
|
||||
imm.hideSoftInputFromWindow(
|
||||
containerView.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue