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

Commit c396ea54 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Automerger Merge Worker
Browse files

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

parents 46e4017c 3273d2f9
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));
    }
}