Merge "Focus the first task after the desktop task when launching overview from KQS" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
081d6f4b59
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user