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

Commit abdb530e authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Add warning message when entering loop twice" into rvc-dev am:...

Merge "Add warning message when entering loop twice" into rvc-dev am: 8fa645a2 am: ea2d6500 am: 8185779e

Change-Id: I9334be3e2079e66fa2b8ae7ffc585cbdc3fa4cff
parents 26177b62 8185779e
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -77,6 +77,7 @@ public final class Looper {
    @UnsupportedAppUsage
    @UnsupportedAppUsage
    final MessageQueue mQueue;
    final MessageQueue mQueue;
    final Thread mThread;
    final Thread mThread;
    private boolean mInLoop;


    @UnsupportedAppUsage
    @UnsupportedAppUsage
    private Printer mLogging;
    private Printer mLogging;
@@ -155,6 +156,12 @@ public final class Looper {
        if (me == null) {
        if (me == null) {
            throw new RuntimeException("No Looper; Looper.prepare() wasn't called on this thread.");
            throw new RuntimeException("No Looper; Looper.prepare() wasn't called on this thread.");
        }
        }
        if (me.mInLoop) {
            Slog.w(TAG, "Loop again would have the queued messages be executed"
                    + " before this one completed.");
        }

        me.mInLoop = true;
        final MessageQueue queue = me.mQueue;
        final MessageQueue queue = me.mQueue;


        // Make sure the identity of this thread is that of the local process,
        // Make sure the identity of this thread is that of the local process,