We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a40a3 commit fa8b27cCopy full SHA for fa8b27c
core/java/android/view/ViewRootImpl.java
@@ -4056,9 +4056,13 @@ void doConsumeBatchedInput(boolean callback) {
4056
mChoreographer.removeCallbacks(Choreographer.CALLBACK_INPUT,
4057
mConsumedBatchedInputRunnable, null);
4058
}
4059
- if (mInputEventReceiver != null) {
4060
- mInputEventReceiver.consumeBatchedInputEvents();
4061
- }
+ }
+
+ // Always consume batched input events even if not scheduled, because there
4062
+ // might be new input there waiting for us that we have no noticed yet because
4063
+ // the Looper has not had a chance to run again.
4064
+ if (mInputEventReceiver != null) {
4065
+ mInputEventReceiver.consumeBatchedInputEvents();
4066
4067
4068
0 commit comments