Skip to content
Commit c4574fc0 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

InkWindow: Provide a copy of the motion event to view root

When a motion event is enqueued into the view root, the view root
expects to own the event, which means it will finish and recycle the
event if necessary.

In the handwriting pipeline, this event actually comes from an
InputEventReceiver that handles finishing the event, so there is a
chance that the event is finished or recycled twice. Make sure the view
root owns the event that is enqueued into it by providing it with a copy
of the event.

Bug: 277809922
Test: manual, HandwritingIme
Change-Id: I65968d075640c1dd585d5d7b9eadb78e3dff9aa2
parent ca7c1492
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment