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

Commit b6489e11 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Fixing regression with launch target task."

parents dce45fd6 0983e02b
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();