Merge "Focus the first task after the desktop task when launching overview from KQS" into main

This commit is contained in:
Schneider Victor-tulias
2024-03-25 15:25:50 +00:00
committed by Android (Google) Code Review
@@ -138,7 +138,7 @@ public class KeyboardQuickSwitchViewController {
// 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.