Commits

John Reck  committed 28d91bd Merge

Merge "Revert "Can not mark the same content of browser page after copy""

  • Participants
  • Parent commits b3f6687, 8717061

Comments (0)

Files changed (2)

File core/java/android/webkit/SelectActionModeCallback.java

 
     @Override
     public void onDestroyActionMode(ActionMode mode) {
-        mWebView.clearSelection();
+        mWebView.selectionDone();
     }
 
     private void setMenuVisibility(Menu menu, boolean visible, int resourceId) {

File core/java/android/webkit/WebViewClassic.java

         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.
      */
     public void onConfigurationChanged(Configuration newConfig) {
         mCachedOverlappingActionModeHeight = -1;
         if (mSelectingText && mOrientation != newConfig.orientation) {
-            clearSelection();
+            selectionDone();
         }
         mOrientation = newConfig.orientation;
         if (mWebViewCore != null && !mBlockWebkitViewMessages) {