From 5534ac32daa9dbbabd9d3e7009cceb13f532618f Mon Sep 17 00:00:00 2001 From: ryanlwlin Date: Mon, 27 Apr 2020 19:36:10 +0800 Subject: 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 --- .../java/com/android/server/accessibility/gestures/TouchExplorer.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java b/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java index bc38fbf50000..04f05cf95eaa 100644 --- a/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java +++ b/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java @@ -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 " -- cgit v1.2.3-59-g8ed1b