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

Commit 3f1679cb authored by John Reck's avatar John Reck
Browse files

Remove an unnecessary sanity check

 This is causing issues with MotionEvents built by various tools such
 as DRT. The check itself doesn't seem strictly necessary, and it is
 easier to remove the check than fix all the tools and tests

Change-Id: I74bf85307956b5858042fbe23f87ed2b87132f17
parent f804ba13
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -269,9 +269,8 @@ final class WebViewInputDispatcher {
     */
    public boolean postPointerEvent(MotionEvent event,
            int webKitXOffset, int webKitYOffset, float webKitScale) {
        if (event == null
                || (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) == 0) {
            throw new IllegalArgumentException("event must be a pointer event");
        if (event == null) {
            throw new IllegalArgumentException("event cannot be null");
        }

        if (DEBUG) {