Skip to content

Commit 9e6d4b0

Browse files
author
Jeff Brown
committed
Lost the race.
Bug: 6373370 Change-Id: If42a3de66b1d407b06064e91ff578dc9ca5ceed8
1 parent f44e394 commit 9e6d4b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/java/android/hardware/input/InputManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ public void unregisterInputDeviceListener(InputDeviceListener listener) {
268268
synchronized (mInputDevicesLock) {
269269
int index = findInputDeviceListenerLocked(listener);
270270
if (index >= 0) {
271+
InputDeviceListenerDelegate d = mInputDeviceListeners.get(index);
272+
d.removeCallbacksAndMessages(null);
271273
mInputDeviceListeners.remove(index);
272274
}
273275
}

0 commit comments

Comments
 (0)