Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b8df4a authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Improve responsiveness by always consuming batched events."

parents 15d5a964 fa8b27c8
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -4056,11 +4056,15 @@ public final class ViewRootImpl implements ViewParent,
                mChoreographer.removeCallbacks(Choreographer.CALLBACK_INPUT,
                        mConsumedBatchedInputRunnable, null);
            }
        }

        // Always consume batched input events even if not scheduled, because there
        // might be new input there waiting for us that we have no noticed yet because
        // the Looper has not had a chance to run again.
        if (mInputEventReceiver != null) {
            mInputEventReceiver.consumeBatchedInputEvents();
        }
    }
    }

    final class TraversalRunnable implements Runnable {
        @Override