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

Commit 18b2da5f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Optimization: reducing number of getNavigationModeMismatchError calls"...

Merge "Optimization: reducing number of getNavigationModeMismatchError calls" into ub-launcher3-rvc-dev
parents a39544d5 2e6fdd7d
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -535,13 +535,14 @@ public final class LauncherInstrumentation {
                mExpectedRotation, mDevice.getDisplayRotation());
                mExpectedRotation, mDevice.getDisplayRotation());


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

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

        log("verifyContainerType: " + containerType);
        log("verifyContainerType: " + containerType);


        final UiObject2 container = verifyVisibleObjects(containerType);
        final UiObject2 container = verifyVisibleObjects(containerType);