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

Commit e7c300f8 authored by Jordan Silva's avatar Jordan Silva Committed by Android (Google) Code Review
Browse files

Merge "Fix condition when should focus on running task" into main

parents 7369348b 4fb37a8f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2952,8 +2952,8 @@ public abstract class RecentsView<
        setCurrentTask(runningTaskViewId);

        boolean shouldFocusRunningTask = !(enableGridOnlyOverview()
                && (enableLargeDesktopWindowingTile()
                || getRunningTaskView() instanceof DesktopTaskView));
                || (enableLargeDesktopWindowingTile()
                && getRunningTaskView() instanceof DesktopTaskView));
        setFocusedTaskViewId(shouldFocusRunningTask ? runningTaskViewId : INVALID_TASK_ID);
        runOnPageScrollsInitialized(() -> setCurrentPage(getRunningTaskIndex()));
        setRunningTaskViewShowScreenshot(false);