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

Commit 26be3762 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Waiting for Normal state when closing Overview by touch

Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Ic1ac5b3db012d1d8235d641a3f6db8a9506f777d
parent 225bf586
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -208,11 +208,15 @@ public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
    public void touchTaskbarBottomCorner(boolean tapRight) {
        try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) {
            Taskbar taskbar = new Taskbar(mLauncher);
            taskbar.touchBottomCorner(tapRight);
            if (mLauncher.isTransientTaskbar()) {
                mLauncher.runToState(
                        () -> taskbar.touchBottomCorner(tapRight),
                        NORMAL_STATE_ORDINAL,
                        "touching taskbar");
                // Tapping outside Transient Taskbar returns to Workspace, wait for that state.
                new Workspace(mLauncher);
            } else {
                taskbar.touchBottomCorner(tapRight);
                // Should stay in Overview.
                verifyActiveContainer();
                verifyActionsViewVisibility();