Skip to content

Commit 069fa7b

Browse files
Jeff BrownAndroid (Google) Code Review
authored andcommitted
Merge "Lost the race."
2 parents 0a732ad + 9e6d4b0 commit 069fa7b

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)