Loading core/java/android/webkit/WebTextView.java +5 −1 Original line number Diff line number Diff line Loading @@ -768,9 +768,13 @@ import junit.framework.Assert; imm.hideSoftInputFromWindow(getWindowToken(), 0); } mInsideRemove = true; boolean isFocused = hasFocus(); mWebView.removeView(this); if (isFocused) { mWebView.requestFocus(); } mInsideRemove = false; mHandler.removeCallbacksAndMessages(null); } @Override Loading core/java/android/webkit/WebView.java +9 −0 Original line number Diff line number Diff line Loading @@ -1581,6 +1581,11 @@ public class WebView extends AbsoluteLayout mListBoxDialog.dismiss(); mListBoxDialog = null; } // remove so that it doesn't cause events if (mWebTextView != null) { mWebTextView.remove(); mWebTextView = null; } if (mNativeClass != 0) nativeStopGL(); if (mWebViewCore != null) { // Set the handlers to null before destroying WebViewCore so no Loading Loading @@ -7636,6 +7641,10 @@ public class WebView extends AbsoluteLayout } /* package */ void passToJavaScript(String currentText, KeyEvent event) { // check if mWebViewCore has been destroyed if (mWebViewCore == null) { return; } WebViewCore.JSKeyData arg = new WebViewCore.JSKeyData(); arg.mEvent = event; arg.mCurrentText = currentText; Loading Loading
core/java/android/webkit/WebTextView.java +5 −1 Original line number Diff line number Diff line Loading @@ -768,9 +768,13 @@ import junit.framework.Assert; imm.hideSoftInputFromWindow(getWindowToken(), 0); } mInsideRemove = true; boolean isFocused = hasFocus(); mWebView.removeView(this); if (isFocused) { mWebView.requestFocus(); } mInsideRemove = false; mHandler.removeCallbacksAndMessages(null); } @Override Loading
core/java/android/webkit/WebView.java +9 −0 Original line number Diff line number Diff line Loading @@ -1581,6 +1581,11 @@ public class WebView extends AbsoluteLayout mListBoxDialog.dismiss(); mListBoxDialog = null; } // remove so that it doesn't cause events if (mWebTextView != null) { mWebTextView.remove(); mWebTextView = null; } if (mNativeClass != 0) nativeStopGL(); if (mWebViewCore != null) { // Set the handlers to null before destroying WebViewCore so no Loading Loading @@ -7636,6 +7641,10 @@ public class WebView extends AbsoluteLayout } /* package */ void passToJavaScript(String currentText, KeyEvent event) { // check if mWebViewCore has been destroyed if (mWebViewCore == null) { return; } WebViewCore.JSKeyData arg = new WebViewCore.JSKeyData(); arg.mEvent = event; arg.mCurrentText = currentText; Loading