Don't show tasks shown in taskbar within overflow UI

Bug: 404753077
Flag: com.android.window.flags.enable_taskbar_overflow
Test: Verify that taskbar overflow bubble view only shows tasks not
visible in taskbar.

Change-Id: Ie04f79c91b524bbc592309ef62723d428e78f304
This commit is contained in:
Toni Barzic committed 2025-06-06 03:46:55 +00:00
1 parent 97c1191d0e
commit 83ffb6e6bd
4 files changed
+20 -13

No files matched your search

@@ -293,7 +293,7 @@ public class TaskbarManagerImpl implements DisplayDecorationListener {
// get pinned tasks - we care about all tasks, not just the one moved to the front
Set<Integer> taskbarPinnedTasks =
entry.getValue().getControllers().taskbarViewController
.getTaskIdsForPinnedApps();
.getShownTaskIds();
// filter out tasks already marked as perceptible
taskbarPinnedTasks.removeAll(mPerceptibleTasks);