diff options
author | 2024-06-25 15:20:07 +0000 | |
---|---|---|
committer | 2024-06-25 15:20:07 +0000 | |
commit | 290b072d6fd85a35675cfd26d225296fb2e2a2c6 (patch) | |
tree | 506cb61a65f6670c9fb9922df0b82349863c30df /services/surfaceflinger/RegionSamplingThread.cpp | |
parent | f8e23023684e84801d4fec6bcbdaf89a689a645b (diff) |
InputDevice: clear absolute axis info if not found
In change I57de645c889de53c8be0f9f8744a62e92fafdadb, getAbsoluteAxisInfo
was modified to handle EventHub::getAbsoluteAxisInfo returning an
optional. However, the old form of EventHub::getAbsoluteAxisInfo had the
side effect of clearing the RawAbsoluteAxisInfo struct that it was
passed a pointer to if the axis isn't present, crucially setting valid
to false. To avoid a behaviour change due to the refactor, mimic that in
InputDevice::getAbsoluteAxisInfo.
Test: atest inputflinger_tests
Test: m checkinput
Bug: 245989146
Flag: EXEMPT refactor
Change-Id: If32272f983139c2e9d5f1e548fb209c21d191180
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions