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

Commit 8717061f authored by John Reck's avatar John Reck Committed by Gerrit Code Review
Browse files

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

This reverts commit 2b3cef0d

Causes crashes in Email, reverting for now

Change-Id: Ia0286763d0ab1f90c2b6082d44a6ca804769f49c
parent 2b3cef0d
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.clearSelection();
        mWebView.selectionDone();
    }

    private void setMenuVisibility(Menu menu, boolean visible, int resourceId) {
+1 −8
Original line number Diff line number Diff line
@@ -4478,13 +4478,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.
     */
@@ -4502,7 +4495,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) {