Loading core/java/android/webkit/WebTextView.java +4 −2 Original line number Diff line number Diff line Loading @@ -594,8 +594,10 @@ import java.util.ArrayList; */ /* package */ void remove() { // hide the soft keyboard when the edit text is out of focus InputMethodManager.getInstance(mContext).hideSoftInputFromWindow( getWindowToken(), 0); InputMethodManager imm = InputMethodManager.getInstance(mContext); if (imm.isActive(this)) { imm.hideSoftInputFromWindow(getWindowToken(), 0); } mWebView.removeView(this); mWebView.requestFocus(); } Loading core/java/android/webkit/WebView.java +4 −2 Original line number Diff line number Diff line Loading @@ -3701,9 +3701,11 @@ public class WebView extends AbsoluteLayout private void hideSoftKeyboard() { InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); if (imm.isActive(this) || (inEditingMode() && imm.isActive(mWebTextView))) { imm.hideSoftInputFromWindow(this.getWindowToken(), 0); } } /* * This method checks the current focus and cursor and potentially rebuilds Loading Loading
core/java/android/webkit/WebTextView.java +4 −2 Original line number Diff line number Diff line Loading @@ -594,8 +594,10 @@ import java.util.ArrayList; */ /* package */ void remove() { // hide the soft keyboard when the edit text is out of focus InputMethodManager.getInstance(mContext).hideSoftInputFromWindow( getWindowToken(), 0); InputMethodManager imm = InputMethodManager.getInstance(mContext); if (imm.isActive(this)) { imm.hideSoftInputFromWindow(getWindowToken(), 0); } mWebView.removeView(this); mWebView.requestFocus(); } Loading
core/java/android/webkit/WebView.java +4 −2 Original line number Diff line number Diff line Loading @@ -3701,9 +3701,11 @@ public class WebView extends AbsoluteLayout private void hideSoftKeyboard() { InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); if (imm.isActive(this) || (inEditingMode() && imm.isActive(mWebTextView))) { imm.hideSoftInputFromWindow(this.getWindowToken(), 0); } } /* * This method checks the current focus and cursor and potentially rebuilds Loading