Update the Aod Icon colors after the HUN->AOD transition

The NotificationAreaController is responsible for adding the
StatusBarIconViews to their appropriate container and update their
looks. An icon is usually added through updateNotificationIcons(List<ListEntry> entries),
which adds the icons and updates their colors. It works well if AOD icons are added through this path.
However there is another path through onFullyHiddenChanged(boolean
fullyHidden) and if an AOD icon becomes visible during this update, we
miss to update its color. In case of black PNG icons it resulted in an
_invisible_ notification on the AOD.

To trigger this path:
 - show aod
 - turn off faceauth bypass
 - post a Pulsing notif with a black PNG icon

Fixes: 276353191
Test: post notifs on AOD and observe their color
Change-Id: I0c1e97e9862d8d100e8710f6d825200603f0b2a4
This commit is contained in:
András Kurucz
2023-05-05 10:17:33 +00:00
parent a54b7778f6
commit bd114eb6fb

View File

@@ -604,6 +604,7 @@ public class NotificationIconAreaController implements
}
updateAodIconsVisibility(animate, false /* force */);
updateAodNotificationIcons();
updateAodIconColors();
}
@Override