summaryrefslogtreecommitdiff
path: root/libs/input/InputDevice.cpp
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2024-06-09 21:19:10 +0000
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2024-06-09 21:19:10 +0000
commit73e5e3a4b1819fc21130b53d813c4772ab9d399e (patch)
tree7ee867ff3cad2fc711066d728c9f74818f994a8a /libs/input/InputDevice.cpp
parent42097e26f6bbfde9aaf980d17298aae26c7a00f5 (diff)
parentaa8e0640e68c596ac71a1369803c90def78eb7eb (diff)
Snap for 11946224 from aa8e0640e68c596ac71a1369803c90def78eb7eb to 24Q3-release
Change-Id: I206638182727919a8d041f6de70e8b4fe1d5ba95
Diffstat (limited to 'libs/input/InputDevice.cpp')
-rw-r--r--libs/input/InputDevice.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/input/InputDevice.cpp b/libs/input/InputDevice.cpp
index bc678103c2..9333ab83a6 100644
--- a/libs/input/InputDevice.cpp
+++ b/libs/input/InputDevice.cpp
@@ -273,10 +273,7 @@ void InputDeviceInfo::addLightInfo(const InputDeviceLightInfo& info) {
}
void InputDeviceInfo::setKeyboardType(int32_t keyboardType) {
- static_assert(AINPUT_KEYBOARD_TYPE_NONE < AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC);
- static_assert(AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC < AINPUT_KEYBOARD_TYPE_ALPHABETIC);
- // There can be multiple subdevices with different keyboard types, set it to the highest type
- mKeyboardType = std::max(mKeyboardType, keyboardType);
+ mKeyboardType = keyboardType;
}
void InputDeviceInfo::setKeyboardLayoutInfo(KeyboardLayoutInfo layoutInfo) {