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

Commit e7ab12b4 authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Scribe: fix handwriting is not initiated in WebView

View#getHandwritingArea mistakenly returned a non-null Rect even for
view's which never calls setHandwritingArea. As a result, handwriting
is not properly initation for views other than EditText.

Bug: 227278641
Test: atest android.view.inputmethod.cts.StylusHandwritingTest
Change-Id: I45700f2684a2f4138f73eaa843d3019e6c26d2f6
parent 0aa52e1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12032,7 +12032,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    @Nullable
    public Rect getHandwritingArea() {
        final ListenerInfo info = mListenerInfo;
        if (info != null) {
        if (info != null && info.mHandwritingArea != null) {
            return new Rect(info.mHandwritingArea);
        }
        return null;