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

Commit 0983e02b authored by Winson's avatar Winson
Browse files

Fixing regression with launch target task.

Change-Id: I7e3ed55081a90309290aba290b4acbadb172283d
parent 0d14d4da
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -773,10 +773,15 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal

        // Set the task focused state without requesting view focus, and leave the focus animations
        // until after the enter-animation
        if (!Constants.DebugFlags.App.EnableFastToggleRecents && launchTargetTask != null) {
            setFocusedTask(mStack.indexOfTask(launchTargetTask), false /* scrollToTask */,
                    false /* animated */, false /* requestViewFocus */);
        } else {
            RecentsActivityLaunchState launchState = mConfig.getLaunchState();
            int taskOffset = launchState.launchedFromHome ? -1 : -2;
            setFocusedTask(mStack.getTaskCount() + taskOffset, false /* scrollToTask */,
                    false /* animated */, false /* requestViewFocus */);
        }

        // Start dozing
        mUIDozeTrigger.startDozing();