commit | 835f1e74426a320274d95bd9a06bc09b1c4f36f8 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Wed May 10 21:41:04 2023 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Thu May 11 17:25:35 2023 +0000 |
tree | 34e1b3d10c7790ffcdf0c3127991dc8c9b04d93c | |
parent | 8b0d097a741b2c47dcd445e1af63a2e49ec37994 [diff] |
GestureConverter: Do not use NotifyArgs as an optional return type NotifyArgs is an std::variant, which is not an optional type. Default-constructing a value of that type results in the creation of the first type in the variant, which in this case is a NotifyInputDevicesChangedArgs. It is incorrect to send that event event when we intend to send no event. Bug: 281671810 Test: atest inputflinger_tests Change-Id: Ib78b3c354129f8494ee52115b2b99e210ceba6bf