Remove the tint from taskbar themed icons for dark mode.

We remove the added tint to taskbar themed icons to match how they look
in the hotseat on launcher home screen specifically for dark mode.

Fix: 323952706
Test: Turn on themed icons and dark mode. Compare app icons in taskbar
and in hotseat
Flag: N/A

Change-Id: I4dfe352ca17ef5537e48fcc3cff66ba4fd4f603a
This commit is contained in:
Saumya Prakash
2024-02-28 00:16:29 +00:00
parent 5983ac77d8
commit ba04c0c1dc
3 changed files with 3 additions and 62 deletions

View File

@@ -206,19 +206,12 @@ public class TaskbarModelCallbacks implements
if (mDeferUpdatesForSUW) {
ItemInfo[] finalHotseatItemInfos = hotseatItemInfos;
mDeferredUpdates = () -> {
updateHotseatItemsAndBackground(finalHotseatItemInfos);
};
mDeferredUpdates = () -> mContainer.updateHotseatItems(finalHotseatItemInfos);
} else {
updateHotseatItemsAndBackground(hotseatItemInfos);
mContainer.updateHotseatItems(hotseatItemInfos);
}
}
private void updateHotseatItemsAndBackground(ItemInfo[] hotseatItemInfos) {
mContainer.updateHotseatItems(hotseatItemInfos);
mControllers.taskbarViewController.updateIconsBackground();
}
/**
* This is used to defer UI updates after SUW builds the unstash animation.
* @param defer if true, defers updates to the UI