I'm using Androids built in day/night mode functionality and I'd like to add an option to my app for
I'm having a problem though because my app requires certain things to be colored programmatically, and I can't figure out how to check if the app considers itself in night or day mode. Without that, I can't set a flag to choose the right colors.
AppCompatDelegate.getDefaultNightMode() just returns AppCompatDelegate.MODE_NIGHT_AUTO which is useless.
I don't see anything else that would tell me, but there must be something?