Merge "InkWindow: Provide a copy of the motion event to view root" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3273d2f980
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user