On android 10, negative images i.e images with inverted color are displayed in the notification from custom-notification apps when dark mode is enabled.
How to prevent that from happening?
Notification with light theme:
Notification with Dark theme:
On android 10, negative images i.e images with inverted color are displayed in the notification from custom-notification apps when dark mode is enabled.
How to prevent that from happening?
Notification with light theme:
Notification with Dark theme:
It turns out this was an android issue, which is fixed after moving to androidx and setting targetsdk to 29 or above. And to add support for dark mode, we can add the desired color to both the files, color.xml(night) and color.xml(not-night).
same issue on HUAWEI EMUI
if your remoteviews's layout xml has TextView Lable and set android:textColor
remove it and try again
i dont know why, but this works for me...
I had the same issue and was fixed once I updated the targetSdkVersion to 29
targetSdkVersion 29
no need to change the textColor of TextView