Merge "Optimization: reducing number of getNavigationModeMismatchError calls" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
18b2da5f07
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user