I have an app with a dark mode and a light mode set. If I try to launch an app on my Xiaomi device with dark mode and dark mode set in the individual apps settings it darkens the colors even more than specified in my theme.kt. It doesn't happen on the emulator, just on my phone. I know it happens because Xiaomi phones override the light theme and create their own dark mode. If I turn the individual dark mode off it displays correctly. How do I make it not possible for Xiaomi phones to force dark mode?
Asked
Active
Viewed 296 times
1
-
Maybe [this answer](https://stackoverflow.com/a/66923051/2808493) would help you. – Armin Feb 09 '23 at 08:24
-
@Armin isn't it a bad practice to define theme in themes.xml instead of theme.kt when using jetpack compose? – Juncu Feb 09 '23 at 10:58
-
Ok check [this answer](https://stackoverflow.com/a/70105736/2808493) too. It's using jetpack compose. – Armin Feb 10 '23 at 12:39
-
I have already had this setup, doesn't work. – Juncu Feb 10 '23 at 14:23