Fix condition when should focus on running task

Bug: 353947137
Fix: 353947516
Fix: 353947467
Fix: 353947334
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Test: OverviewDesktopTaskImageTest
Change-Id: I6210335333163ba70c228215e01889c0d13ec896
This commit is contained in:
Jordan Silva
2024-08-22 09:50:52 +01:00
parent 97b4046b39
commit 4fb37a8ffa
@@ -2949,8 +2949,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);