When showing a notification on the Android N and O, it looks like this:

You can change the top color of the icon and application name using the method setColor NotificationCompat.Builder. The problem is that the displayed color does not match the one provided, as it receives a darker in the notification.
I tested it on Google Pixel (Oreo). Is this somewhere documented? Any workarounds?
source
share