diff options
| author | 2023-03-30 15:20:38 +0000 | |
|---|---|---|
| committer | 2023-04-06 10:11:01 +0000 | |
| commit | 195c5f8010282591655f20f8576a2f139b7f713f (patch) | |
| tree | 5fe568dcfc87c98238a28024fa001e6f31214207 /libs/jpegrecoverymap/jpegencoderhelper.cpp | |
| parent | f30d7a20884274011e1f8005eed5c2a763d2f7a2 (diff) | |
Touchpad: correct HardwareState::touch_cnt for palms
The palm filtering logic previously only reduced the
HardwareState::finger_cnt field when the touchpad had identified palms,
not touch_cnt. I suspect that this was leading the Gestures library to
go into T5R2 mode (for touchpads that sometimes report more touches than
they can track), meaning that palms sometimes caused tap-to-clicks. I
can't reproduce this exact issue myself, but correcting this
inconsistency is good to do anyway.
Bug: 275616121
Test: atest inputflinger_tests:HardwareStateConverterTest
Test: check debug logs to verify palms don't cause touch_cnt to increase
Change-Id: Ic7b22864214351875afe9969fdbaab42db9d7877
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions