Skip to content
Commit 35a81def authored by András Kurucz's avatar András Kurucz
Browse files

Ignore the closing MotionEvent of swipe gestures for falsing

The ZigZagClassifier falsly reports some swipes as false touches. The reason for that is in our touch event stream. The closing ACTION_UP event of a swipe might be a bit offseted from the previous ACTION_MOVE event and sometimes it is just enough to  push us over the allowed tolerance.

In this fix we drop the gesture closing ACTION_UP event if it is close in time to a previous ACTION_MOVE event.

Fixes: 236197248
Test: atest swipe notifications on the LS and observe the FalsingManager logs
Test: atest SystemUI:com.android.systemui.classifier

Change-Id: I33093ff77fd23a2913bd3adfd79a15e3ae66b316
parent 460cffff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment