commit | f3ec548da4a7fc678b39a0dd3a2a8d7a3f949cce | [log] [tgz] |
---|---|---|
author | Linnan Li <lilinnan@xiaomi.corp-partner.google.com> | Thu Apr 18 16:45:05 2024 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Thu Apr 18 16:45:05 2024 +0000 |
tree | 394c4b3b10fc5298c5e5967b40b0163f68215056 | |
parent | 8be726605023df669359c4b5148cdc6bf874b34b [diff] [blame] |
Add TAINTED to MotionFlags in input.rs As it stands, we should add all of our event flags to the MotionFlag, otherwise we're bound to get some unexpected crashes. Bug: none Test: Build Signed-off-by: Linnan Li <lilinnan@xiaomi.corp-partner.google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:0cc4d1d45b90376ddd5c916572e88f704c6f075a) Merged-In: I6d53c8c0f995104fe5352356fc66fe586f6a86f1 Change-Id: I6d53c8c0f995104fe5352356fc66fe586f6a86f1
diff --git a/libs/input/rust/input.rs b/libs/input/rust/input.rs index f55e3c0..d4f2426 100644 --- a/libs/input/rust/input.rs +++ b/libs/input/rust/input.rs
@@ -196,6 +196,8 @@ const NO_FOCUS_CHANGE = input_bindgen::AMOTION_EVENT_FLAG_NO_FOCUS_CHANGE; /// FLAG_IS_GENERATED_GESTURE const IS_GENERATED_GESTURE = input_bindgen::AMOTION_EVENT_FLAG_IS_GENERATED_GESTURE; + /// FLAG_TAINTED + const TAINTED = input_bindgen::AMOTION_EVENT_FLAG_TAINTED; } }