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
This commit is contained in:
ryanlwlin
2020-04-27 19:36:10 +08:00
parent cf9ab7aa3a
commit 5534ac32da

View File

@@ -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 "