From 4fb37a8ffa5c106ef81ad18c4c3869215bf018e3 Mon Sep 17 00:00:00 2001 From: Jordan Silva Date: Thu, 22 Aug 2024 09:50:52 +0100 Subject: [PATCH] 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 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e05349756a..487f6b934e 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -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);