Merge "Scribe: fix handwriting is not initiated in WebView" into tm-dev

This commit is contained in:
Haoyu Zhang
2022-04-06 00:18:12 +00:00
committed by Android (Google) Code Review

View File

@@ -12033,7 +12033,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;