Moving launcher state verification higher.

This will result in better messages when accidentally scrolling
closes All Apps.

Test: presubmit
Bug: 187761685
Change-Id: Iadb8847ba66b1d6fe903577f67fcf3e504c2b28c
This commit is contained in:
vadimt 2021-07-14 13:25:58 -07:00 committed by Vadim Tryshev
parent 3c4f60900d
commit b8d13d7a70
1 changed files with 1 additions and 1 deletions

View File

@ -135,6 +135,7 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer {
.collect(Collectors.toList()),
mLauncher.getVisibleBounds(searchBox).bottom
- mLauncher.getVisibleBounds(allAppsContainer).top);
verifyActiveContainer();
final int newScroll = getAllAppsScroll();
mLauncher.assertTrue(
"Scrolled in a wrong direction in AllApps: from " + scroll + " to "
@ -144,7 +145,6 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer {
mLauncher.assertTrue(
"Exceeded max scroll attempts: " + MAX_SCROLL_ATTEMPTS,
++attempts <= MAX_SCROLL_ATTEMPTS);
verifyActiveContainer();
scroll = newScroll;
}
}