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

Commit db77ec9e authored by Mark Fasheh's avatar Mark Fasheh Committed by Android (Google) Code Review
Browse files

Merge "ConcurrentMessageQueue fix idle calculation" into main

parents 492900d0 267fdb0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -754,7 +754,7 @@ public final class MessageQueue {
                // Idle handles only run if the queue is empty or if the first message
                // in the queue (possibly a barrier) is due to be handled in the future.
                if (pendingIdleHandlerCount < 0
                        && mNextPollTimeoutMillis != 0) {
                        && isIdle()) {
                    pendingIdleHandlerCount = mIdleHandlers.size();
                }
                if (pendingIdleHandlerCount <= 0) {
+1 −1
Original line number Diff line number Diff line
@@ -712,7 +712,7 @@ public final class MessageQueue {
                // Idle handles only run if the queue is empty or if the first message
                // in the queue (possibly a barrier) is due to be handled in the future.
                if (pendingIdleHandlerCount < 0
                        && mNextPollTimeoutMillis != 0) {
                        && isIdle()) {
                    pendingIdleHandlerCount = mIdleHandlers.size();
                }
                if (pendingIdleHandlerCount <= 0) {