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

Commit ed29280b authored by Jeff Chen's avatar Jeff Chen Committed by Automerger Merge Worker
Browse files

Merge "Avoid un-registration when mRealInstrumentation is null." into tm-qpr-dev am: e70c76e2

parents 9ae44d92 e70c76e2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -132,8 +132,10 @@ public abstract class SysuiTestCase {

    @After
    public void SysuiTeardown() {
        if (mRealInstrumentation != null) {
            InstrumentationRegistry.registerInstance(mRealInstrumentation,
                    InstrumentationRegistry.getArguments());
        }
        if (TestableLooper.get(this) != null) {
            TestableLooper.get(this).processAllMessages();
            // Must remove static reference to this test object to prevent leak (b/261039202)