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

Commit fa8b27c8 authored by Jeff Brown's avatar Jeff Brown
Browse files

Improve responsiveness by always consuming batched events.

Change-Id: I2eb88f8fde97ce0cd820f39da4ebe8698a7db95c
parent 58a40a3e
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