Filter out running pinned app tasks from KeyboardQuickSwitch.

- Opening KQS from keyboard shortcuts shows all the tasks.
- Opening KQS from taskbar will filter out all the running pinned apps
  from the list of views.

Bug: 368119679
Change-Id: I6090679f9fc359212db00a325917892ae6e1eb39
Test: open KQS via taskbar affordance, obseerve filtered list,
      use alt + option
      observe list changes to show all tasks
      click affordance again, observe list changes back to filtered
Flag: com.android.launcher3.taskbar_overflow
This commit is contained in:
Jon Miranda
2024-09-25 15:35:05 +00:00
parent 8388a07673
commit 9ce27637d7
3 changed files with 59 additions and 9 deletions
@@ -140,7 +140,8 @@ public class TaskbarViewCallbacks {
return new View.OnClickListener() {
@Override
public void onClick(View v) {
mControllers.keyboardQuickSwitchController.openQuickSwitchView();
mControllers.keyboardQuickSwitchController.openQuickSwitchView(
mControllers.taskbarViewController.getTaskIdsForPinnedApps());
}
};
}
@@ -150,7 +151,8 @@ public class TaskbarViewCallbacks {
return new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
mControllers.keyboardQuickSwitchController.openQuickSwitchView();
mControllers.keyboardQuickSwitchController.openQuickSwitchView(
mControllers.taskbarViewController.getTaskIdsForPinnedApps());
return true;
}
};