title: Disable Dark Mode Programmatically in Android
body: <p>I want to disable darkmode in app based on a flag Programmatically. I have defined custom colors in the values-night folder for darkmode.</p>
  <p>I have tried the following solutions for disabling darkmode but not worked.</p>
  <p><code>AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);</code></p>
  <p>Is there any way to disable darkmode programmatically without removing values-night folder?</p>