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

Commit 9e4fdfae authored by George Mount's avatar George Mount Committed by Android (Google) Code Review
Browse files

Merge "Move the selection handles vertically to match TextView."

parents baad5d5f f5124e39
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -4924,11 +4924,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
     */
    private void getSelectionHandles(int[] handles) {
        handles[0] = mSelectCursorBase.right;
        handles[1] = mSelectCursorBase.bottom -
                (mSelectCursorBase.height() / 4);
        handles[1] = mSelectCursorBase.bottom;
        handles[2] = mSelectCursorExtent.left;
        handles[3] = mSelectCursorExtent.bottom
                - (mSelectCursorExtent.height() / 4);
        handles[3] = mSelectCursorExtent.bottom;
        if (!nativeIsBaseFirst(mNativeClass)) {
            int swap = handles[0];
            handles[0] = handles[2];