Merge "Optimization: reducing number of getNavigationModeMismatchError calls" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-28 21:11:43 +00:00
committed by Android (Google) Code Review
@@ -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);