summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/java/android/webkit/SelectActionModeCallback.java2
-rw-r--r--core/java/android/webkit/WebViewClassic.java9
2 files changed, 2 insertions, 9 deletions
diff --git a/core/java/android/webkit/SelectActionModeCallback.java b/core/java/android/webkit/SelectActionModeCallback.java
index 215467b..f9f5b03 100644
--- a/core/java/android/webkit/SelectActionModeCallback.java
+++ b/core/java/android/webkit/SelectActionModeCallback.java
@@ -137,7 +137,7 @@ class SelectActionModeCallback implements ActionMode.Callback {
@Override
public void onDestroyActionMode(ActionMode mode) {
- mWebView.clearSelection();
+ mWebView.selectionDone();
}
private void setMenuVisibility(Menu menu, boolean visible, int resourceId) {
diff --git a/core/java/android/webkit/WebViewClassic.java b/core/java/android/webkit/WebViewClassic.java
index 246f000..a324502 100644
--- a/core/java/android/webkit/WebViewClassic.java
+++ b/core/java/android/webkit/WebViewClassic.java
@@ -4482,13 +4482,6 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
return selectText(x, y);
}
- public void clearSelection() {
- selectionDone();
- if (mWebViewCore != null) {
- mWebViewCore.sendMessage(EventHub.SELECT_TEXT, null);
- }
- }
-
/**
* Select the word at the indicated content coordinates.
*/
@@ -4506,7 +4499,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
public void onConfigurationChanged(Configuration newConfig) {
mCachedOverlappingActionModeHeight = -1;
if (mSelectingText && mOrientation != newConfig.orientation) {
- clearSelection();
+ selectionDone();
}
mOrientation = newConfig.orientation;
if (mWebViewCore != null && !mBlockWebkitViewMessages) {