We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a732ad + 9e6d4b0 commit 069fa7bCopy full SHA for 069fa7b
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