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

Commit 2e6fdd7d authored by vadimt's avatar vadimt
Browse files

Optimization: reducing number of getNavigationModeMismatchError calls

They are relatively expensive

Change-Id: I34de56884ec3f88e69c709026d3b72e62c787681
parent fbb6d6a7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -535,13 +535,14 @@ public final class LauncherInstrumentation {
                mExpectedRotation, mDevice.getDisplayRotation());

        // b/148422894
        String error = null;
        for (int i = 0; i != 600; ++i) {
            if (getNavigationModeMismatchError() == null) break;
            error = getNavigationModeMismatchError();
            if (error == null) break;
            sleep(100);
        }

        final String error = getNavigationModeMismatchError();
        assertTrue(error, error == null);

        log("verifyContainerType: " + containerType);

        final UiObject2 container = verifyVisibleObjects(containerType);