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

Commit 5534ac32 authored by ryanlwlin's avatar ryanlwlin
Browse files

Fix didn't bypass touch events with non-empty passthrough Region

When the action down motion event contains in the
mTouchExplorationPassthroughRegion, Touchxplorer didn't bypass the
motion event due to enabled multi-finger gesture.

Bug: 152597224
Test: manual test with set mult-finger-gesture enabled non-empty
      passthrough region
      atest CtsAccessibilityServiceTestCases:TouchExplorerTest
      atest FrameworksServicesTests:TouchExplorerTest
Change-Id: Ifef6a4da98aca8144bfd6deaceb1a110cfdbe5df
parent cf9ab7aa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -793,10 +793,6 @@ public class TouchExplorer extends BaseEventStreamTransformation
     */
    private void handleMotionEventStateDelegating(
            MotionEvent event, MotionEvent rawEvent, int policyFlags) {
        if (mGestureDetector.isMultiFingerGesturesEnabled()) {
            // Multi-finger gestures conflict with this functionality.
            return;
        }
        switch (event.getActionMasked()) {
            case MotionEvent.ACTION_DOWN: {
                Slog.e(LOG_TAG, "Delegating state can only be reached if "