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

Commit 4ddd96b7 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Process all messages of TestLooper after each test" into rvc-dev am: 78697715

Change-Id: If2cbf412aa41de9d8b16299d2bc374124da8ae64
parents 296c23fa 78697715
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -86,7 +86,9 @@ public abstract class SysuiTestCase {
    public void SysuiTeardown() {
    public void SysuiTeardown() {
        InstrumentationRegistry.registerInstance(mRealInstrumentation,
        InstrumentationRegistry.registerInstance(mRealInstrumentation,
                InstrumentationRegistry.getArguments());
                InstrumentationRegistry.getArguments());
        // Reset the assert's testable looper to null.
        if (TestableLooper.get(this) != null) {
            TestableLooper.get(this).processAllMessages();
        }
        disallowTestableLooperAsMainThread();
        disallowTestableLooperAsMainThread();
        SystemUIFactory.cleanup();
        SystemUIFactory.cleanup();
    }
    }