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

Commit 9f86b17c authored by Fengjiang Li's avatar Fengjiang Li
Browse files

Fix bug where TAPL test is checking test's ApplicationInfo

Bug: 326118348
Test: This is the test
Flag: NONE
Change-Id: I7519727366b1ad03a50da07d6d331135fdcb89a4
parent 6e3541e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1207,7 +1207,8 @@ public final class LauncherInstrumentation {
            waitForNavigationUiObject("back").click();
        }
        if (launcherVisible) {
            if (getContext().getApplicationInfo().isOnBackInvokedCallbackEnabled()) {
            if (InstrumentationRegistry.getTargetContext().getApplicationInfo()
                    .isOnBackInvokedCallbackEnabled()) {
                expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_ON_BACK_INVOKED);
            } else {
                expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_KEY_BACK_DOWN);