diff options
author | Siarhei Vishniakou <svv@google.com> | 2023-12-15 13:47:33 -0800 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-29 03:16:29 +0000 |
commit | e4b3c4d20162bbc90e1459c0c4976fa23b3f2f87 (patch) | |
tree | 27b821659c27ecc89d9fc80abafd55402d8a42d3 | |
parent | 4846bc304fcbd3404e88116587c8d317f06d5c8b (diff) | |
download | native-e4b3c4d20162bbc90e1459c0c4976fa23b3f2f87.tar.gz |
Disable app switch drop behaviour
This behaviour causes InputDispatcher to drop input events, potentially
leading to incorrect input event streams inside the dispatcher.
This later causes a crash.
This behaviour is no longer needed, so we should remove it.
In the future, all of the related code should be deleted, as well.
Bug: 308531018
Test: none
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:18a1d513e965c406c106993fc52c74618a4c3205)
Merged-In: I32dcfae512e84d3d7a3ada76b826c84269ef6075
Change-Id: I32dcfae512e84d3d7a3ada76b826c84269ef6075
-rw-r--r-- | services/inputflinger/dispatcher/InputDispatcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/inputflinger/dispatcher/InputDispatcher.cpp b/services/inputflinger/dispatcher/InputDispatcher.cpp index 6033398b25..d356549e76 100644 --- a/services/inputflinger/dispatcher/InputDispatcher.cpp +++ b/services/inputflinger/dispatcher/InputDispatcher.cpp @@ -72,7 +72,8 @@ using android::os::InputEventInjectionResult; using android::os::InputEventInjectionSync; namespace input_flags = com::android::input::flags; -static const bool REMOVE_APP_SWITCH_DROPS = input_flags::remove_app_switch_drops(); +// TODO(b/312714754): remove the corresponding code, as well. +static const bool REMOVE_APP_SWITCH_DROPS = true; namespace android::inputdispatcher { |