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:
You can change your display to a dark background using a dark theme or color inversion. Dark theme applies to the Android system UI and supported apps. Colors don't change in media, such as videos. Color inversion applies to everything on your device, including media.
Use the system setting (Settings -> Display -> Theme) to enable Dark theme. Use the Quick Settings tile to switch themes from the notification tray (once enabled). On Pixel devices, selecting the Battery Saver mode enables Dark theme at the same time.
My Google Chrome app has Dark Mode enabled but Google search results is still a bright white screen. It is possible that the cause is outside of Google Search, and a Chrome extension is blocking this result. Or there is a conflict with the settings.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With