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

Commit 6f7f212f authored by Phil Weaver's avatar Phil Weaver Committed by android-build-merger
Browse files

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

Merge "Merge "Stop system process crash in TouchExplorer" into oc-dev am: be70141e" into oc-dev-plus-aosp
am: d41454b6

Change-Id: I9e530a29daed0393c482255eebac0079857becf5
parents 615e77a6 d41454b6
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());