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

Commit 62cc718b authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

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

Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I99f54beaf94cb138eb7643e5652b88e846e81f3f
parent 225bf586
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -173,9 +173,12 @@ public class BaseOverview extends LauncherInstrumentation.VisibleContainer {

            OverviewTask currentTask = flingToFirstTask();

            mLauncher.touchOutsideContainer(currentTask.getUiObject(),
            mLauncher.runToState(
                    () -> mLauncher.touchOutsideContainer(currentTask.getUiObject(),
                            /* tapRight= */ true,
                    /* halfwayToEdge= */ false);
                            /* halfwayToEdge= */ false),
                    NORMAL_STATE_ORDINAL,
                    "touching outside of first task");

            return new Workspace(mLauncher);
        }