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:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user