i have a Notification with a custom XML-Layout, therefore i can't use default Styles like MessagingStyle or MediaStyle.
The problem is, that the Notification Stays white, even if Dark Mode is on, which is quite annoying.
I checked the Source Code of MessagingStyle and MediaStyle, it seems that the Dark Mode BackgroundColor is set by the Statusbar itself, when using these Styles, they can not be extracted from the Notification Object itself (not even with Reflections)
Is it possible to retrieve the background color somehow?
I think it would not be a good practice to hardcode the color, it might be different on different Smartphones...
Edit: even settings correct colors does not help... Notification are light in lockscreen and dark in notification bar...