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

Commit 2364b55d authored by Kevin Jeon's avatar Kevin Jeon Committed by Android (Google) Code Review
Browse files

Merge "Change behavior around removing mLooperProcessed" into main

parents 1d05e7a4 89ff119c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -281,11 +281,9 @@ public final class MessageStack {
     * Remove a message from the stack.
     */
    private void removeFromStack(Message m) {
        // mLooperProcessed must be updated to the next message that hasn't been removed.
        // mLooperProcessed must be updated to the next message.
        if (m == mLooperProcessed) {
            do {
            mLooperProcessed = mLooperProcessed.next;
            } while (mLooperProcessed != null && mLooperProcessed.isRemoved());
        }

        // If prev is null, m was the top at the time the previous heapSweep was called.