When I use
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
to open & close dark mode. then i test using my phone's dark mode Button(not my app code), then my APP isn't changing.
why? How can I do?
MY phone is android 9