Filter out unsupported items immediately when updating Taskbar.

Fixes an issue where hotseatItems may not reflect the number of hotseat views in Taskbar. Entries in the array can be null (e.g. no predictions but there is space in the hotseat for them). If these are filtered out immediately, hotseatItems.length will correspond to the number of hotseat views.

Test: go/testedequals
Flag: EXEMPT bugfix
Fix: 379704910
Change-Id: I375d8152fccb6df5a9b783842ecf5dcedf6894c1
This commit is contained in:
Brian Isganitis committed 2024-11-21 12:24:11 -05:00
1 parent a673a1b456
commit 1782af7b6e
4 files changed
+265 -28

No files matched your search

@@ -208,7 +208,7 @@ public class TaskbarModelCallbacks implements
private void commitHotseatItemUpdates(
ItemInfo[] hotseatItemInfos, List<GroupTask> recentTasks) {
mContainer.updateHotseatItems(hotseatItemInfos, recentTasks);
mContainer.updateItems(hotseatItemInfos, recentTasks);
mControllers.taskbarViewController.updateIconViewsRunningStates();
}