commit | 081d6f4b59d257ec392f8d35d0621cd13904f0fd | [log] [tgz] |
---|---|---|
author | Schneider Victor-tulias <victortulias@google.com> | Mon Mar 25 15:25:50 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Mar 25 15:25:50 2024 +0000 |
tree | 53e998610be1f6cdaa1fd9a9b2a31ec4e28d52b1 | |
parent | 41e4290d9f462557f6e6b05343aad47ed03f8955 [diff] | |
parent | 5f14ec50dd3d5350ae345bb57492d7d052c4667e [diff] |
Merge "Focus the first task after the desktop task when launching overview from KQS" into main
diff --git a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java index 847088d..5f53cc3 100644 --- a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java
@@ -138,7 +138,7 @@ // views have been added in the KeyboardQuickSwitchView. GroupTask task = mControllerCallbacks.getTaskAt(index); if (task == null) { - return Math.max(0, index); + return mOnDesktop ? 1 : Math.max(0, index); } if (mControllerCallbacks.isTaskRunning(task)) { // Ignore attempts to run the selected task if it is already running.