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

Commit 55b039f1 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Support for correctly scaling text selection handles"

parents 0a20d6a4 1cfe8ddf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2392,6 +2392,12 @@ public class WebView extends AbsoluteLayout
        return mZoomManager.getScale();
    }

    // Called by JNI. Returns the scale to apply to the text selection handles
    /* package */ float getTextHandleScale() {
        float density = mContext.getResources().getDisplayMetrics().density;
        return density / getScale();
    }

    /**
     * Return the reading level scale of the WebView
     * @return The reading level scale.