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

Commit 57efcffc authored by John Reck's avatar John Reck
Browse files

Fix text selection drawing on SW

 Bug: 5312770
 Helps if you actually draw stuff...

Change-Id: I5ab8cd0726cac77a91fb476c7db0873132ba91d9
parent b5dfcb8a
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -4436,6 +4436,7 @@ public class WebView extends AbsoluteLayout
                mHeldMotionless = MOTIONLESS_PENDING;
            }
        }
        int saveCount = canvas.save();
        if (animateZoom) {
            mZoomManager.animateZoom(canvas);
        } else if (!canvas.isHardwareAccelerated()) {
@@ -4486,10 +4487,6 @@ public class WebView extends AbsoluteLayout
                nativeUseHardwareAccelSkia(mHardwareAccelSkia);
            }

            if (mSelectingText && USE_JAVA_TEXT_SELECTION) {
                drawTextSelectionHandles(canvas);
            }

        } else {
            DrawFilter df = null;
            if (mZoomManager.isZoomAnimating() || UIAnimationsRunning) {
@@ -4507,6 +4504,11 @@ public class WebView extends AbsoluteLayout
            }
        }

        canvas.restoreToCount(saveCount);
        if (mSelectingText && USE_JAVA_TEXT_SELECTION) {
            drawTextSelectionHandles(canvas);
        }

        if (extras == DRAW_EXTRAS_CURSOR_RING) {
            if (mTouchMode == TOUCH_SHORTPRESS_START_MODE) {
                mTouchMode = TOUCH_SHORTPRESS_MODE;