Android - How to detect if night mode is on when using AppCompatDelegate.MODE_NIGHT_AUTO : <p>I'm using Androids built in day/night mode functionality and I'd like to add an option to my app for <code>AppCompatDelegate.MODE_NIGHT_AUTO</code></p>

<p>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.</p>

<p>Calling <code>AppCompatDelegate.getDefaultNightMode()</code> just returns AppCompatDelegate.MODE_NIGHT_AUTO which is useless.</p>

<p>I don't see anything else that would tell me, but there must be something?</p>
