KeyHandler: Don't ignore oplus,tri-state-key
As seen on SM8150. Change-Id: Ie70a075926f51fa80b2dc148859823d705fb757d
This commit is contained in:
@@ -64,7 +64,9 @@ class KeyHandler(context: Context) : DeviceKeyHandler {
|
|||||||
return event
|
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
|
return event
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user