commit | a3b18f4c3541d58b35fd8afea319ad5a78b48bbe | [log] [tgz] |
---|---|---|
author | Linnan Li <lilinnan@xiaomi.corp-partner.google.com> | Wed Apr 17 16:54:55 2024 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed Apr 17 16:54:55 2024 +0000 |
tree | d70068cb9dec32ad97b62b0e7ef5db06e02728bb | |
parent | 5494c190af80adf979896e59a06cfedbfd94942d [diff] |
Add IS_GENERATED_GESTURE to MotionFlags in input.rs Because IS_GENERATED_GESTURE is actually used in touchpad gestures, it is a legitimate flag. We should add it to MotionFlags; otherwise, MotionFlags::from_bits will return a None, which is not the result we want. Bug: 335391081 Test: Enable inbound event verification and use two finger swipe on touchpad, device it should not crash. Signed-off-by: Linnan Li <lilinnan@xiaomi.corp-partner.google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:fc358ec0877fd60e15645fe2683fa5ad5067a8eb) Merged-In: I9c1a3f52508c106837bcabef0e10c71f69d1dadf Change-Id: I9c1a3f52508c106837bcabef0e10c71f69d1dadf