We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f44e394 commit 9e6d4b0Copy full SHA for 9e6d4b0
core/java/android/hardware/input/InputManager.java
@@ -268,6 +268,8 @@ public void unregisterInputDeviceListener(InputDeviceListener listener) {
268
synchronized (mInputDevicesLock) {
269
int index = findInputDeviceListenerLocked(listener);
270
if (index >= 0) {
271
+ InputDeviceListenerDelegate d = mInputDeviceListeners.get(index);
272
+ d.removeCallbacksAndMessages(null);
273
mInputDeviceListeners.remove(index);
274
}
275
0 commit comments