Skip to content

Commit

Permalink
Update InAppWebView.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo authored Apr 15, 2022
1 parent f43c8c2 commit 96b6525
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1302,8 +1302,7 @@ public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
public void run() {
InputMethodManager imm =
(InputMethodManager) getContext().getSystemService(INPUT_METHOD_SERVICE);
if (containerView!=null && imm != null && !imm.isAcceptingText()) {

if (containerView != null && imm != null && !imm.isAcceptingText()) {
imm.hideSoftInputFromWindow(
containerView.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
}
Expand Down

0 comments on commit 96b6525

Please sign in to comment.