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

Commit 3273d2f9 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "InkWindow: Provide a copy of the motion event to view root" into udc-dev

parents 424b9987 c4574fc0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@ final class InkWindow extends PhoneWindow {
        Objects.requireNonNull(decor);
        final ViewRootImpl viewRoot = decor.getViewRootImpl();
        Objects.requireNonNull(viewRoot);
        viewRoot.enqueueInputEvent(event);
        // The view root will own the event that we enqueue, so provide a copy of the event.
        viewRoot.enqueueInputEvent(MotionEvent.obtain(event));
    }
}