KeyHandler: Don't ignore oplus,tri-state-key

As seen on SM8150.

Change-Id: Ie70a075926f51fa80b2dc148859823d705fb757d
This commit is contained in:
LuK1337
2022-10-03 21:15:35 +02:00
committed by Łukasz Patron
parent 082d65f8c4
commit 7b1294c8b5

View File

@@ -64,7 +64,9 @@ class KeyHandler(context: Context) : DeviceKeyHandler {
return event
}
if (inputManager.getInputDevice(event.deviceId).name != "oplus,hall_tri_state_key") {
val deviceName = inputManager.getInputDevice(event.deviceId).name
if (deviceName != "oplus,hall_tri_state_key" && deviceName != "oplus,tri-state-key") {
return event
}