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

Commit be70141e authored by Phil Weaver's avatar Phil Weaver Committed by Android (Google) Code Review
Browse files

Merge "Stop system process crash in TouchExplorer" into oc-dev

parents 22f82908 a0260a17
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -938,7 +938,12 @@ class TouchExplorer implements EventStreamTransformation, AccessibilityGestureDe
        if (pointerIdBits == ALL_POINTER_ID_BITS) {
            event = prototype;
        } else {
            try {
                event = prototype.split(pointerIdBits);
            } catch (IllegalArgumentException e) {
                Slog.e(LOG_TAG, "sendMotionEvent: Failed to split motion event: " + e);
                return;
            }
        }
        if (action == MotionEvent.ACTION_DOWN) {
            event.setDownTime(event.getEventTime());