Android N notification header and icon color darker

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

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?

+4
source share
1 answer

Google Notification setColor. , , evil! ( ) () NotificationColorUtil. 300 (findContrastColor) 474 (resolveContrastColor), :

, .

. Google , .

0

Source: https://habr.com/ru/post/1690121/


All Articles