Merge "Report toolType on handwriting start" into udc-dev

This commit is contained in:
Treehugger Robot
2023-06-01 12:23:43 +00:00
committed by Android (Google) Code Review

View File

@@ -7017,6 +7017,10 @@ public final class ViewRootImpl implements ViewParent,
private int processPointerEvent(QueuedInputEvent q) {
final MotionEvent event = (MotionEvent)q.mEvent;
boolean handled = mHandwritingInitiator.onTouchEvent(event);
if (handled) {
// If handwriting is started, toolkit doesn't receive ACTION_UP.
mLastClickToolType = event.getToolType(event.getActionIndex());
}
mAttachInfo.mUnbufferedDispatchRequested = false;
mAttachInfo.mHandlingPointerEvent = true;