Waiting for Normal state when closing Overview by touching outside of first task

Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I99f54beaf94cb138eb7643e5652b88e846e81f3f
This commit is contained in:
Vadim Tryshev
2024-01-09 14:24:15 -08:00
parent 225bf58643
commit 62cc718bcd

View File

@@ -173,9 +173,12 @@ public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
OverviewTask currentTask = flingToFirstTask();
mLauncher.touchOutsideContainer(currentTask.getUiObject(),
/* tapRight= */ true,
/* halfwayToEdge= */ false);
mLauncher.runToState(
() -> mLauncher.touchOutsideContainer(currentTask.getUiObject(),
/* tapRight= */ true,
/* halfwayToEdge= */ false),
NORMAL_STATE_ORDINAL,
"touching outside of first task");
return new Workspace(mLauncher);
}