mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Not calling updateCallback in constructor as it can cause initialization error
Bug: 390930809 Flag: EXEMPT bugfix Test: atest ActiveTrackpadListTest Change-Id: Ifb14e2949f1f399fbb8b63f493f96d0dd54cc081
This commit is contained in:
@@ -30,7 +30,7 @@ class ActiveTrackpadList(ctx: Context, private val updateCallback: Runnable) :
|
||||
|
||||
init {
|
||||
inputManager.registerInputDeviceListener(this, Executors.UI_HELPER_EXECUTOR.handler)
|
||||
inputManager.inputDeviceIds.forEach { deviceId -> onInputDeviceAdded(deviceId) }
|
||||
inputManager.inputDeviceIds.filter(this::isTrackpadDevice).forEach(this::add)
|
||||
}
|
||||
|
||||
override fun onInputDeviceAdded(deviceId: Int) {
|
||||
|
||||
Reference in New Issue
Block a user