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

Commit 1acb0511 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Slightly optimize same thread check" into main

parents ef980766 dbc8b64d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2918,9 +2918,8 @@ public final class MessageQueue {
                    + " now: " + SystemClock.uptimeMillis());
        }

        final Looper myLooper = Looper.myLooper();
        /* If we are running on the looper thread we can add directly to the priority queue */
        if (myLooper != null && myLooper.getQueue() == this) {
        if (Thread.currentThread() == mLooperThread) {
            if (getQuitting()) {
                logDeadThread(msg);
                return false;