Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aae1b516 authored by Victoria Lease's avatar Victoria Lease Committed by Android Git Automerger
Browse files

am b0e0e54d: Merge "Can not mark the same content of browser page after copy"

* commit 'b0e0e54d':
  Can not mark the same content of browser page after copy
parents bafd663f b0e0e54d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ class SelectActionModeCallback implements ActionMode.Callback {

    @Override
    public void onDestroyActionMode(ActionMode mode) {
        mWebView.selectionDone();
        mWebView.clearSelection();
    }

    private void setMenuVisibility(Menu menu, boolean visible, int resourceId) {
+8 −1
Original line number Diff line number Diff line
@@ -4482,6 +4482,13 @@ 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.
     */
@@ -4499,7 +4506,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
    public void onConfigurationChanged(Configuration newConfig) {
        mCachedOverlappingActionModeHeight = -1;
        if (mSelectingText && mOrientation != newConfig.orientation) {
            selectionDone();
            clearSelection();
        }
        mOrientation = newConfig.orientation;
        if (mWebViewCore != null && !mBlockWebkitViewMessages) {