title: Android DayNight Theme with configChanges
body: <p>I'm creating an app where I use the theme DayNight of the Android support libraries.</p>
  
  <p>This is the code in themes.xml</p>
  
  <pre><code>&lt;style name="ActivityTheme" parent="Theme.AppCompat.DayNight.NoActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I use configChanges in the manifest to manage rotations.</p>
  
  <pre><code>android:configChanges="keyboardHidden|orientation|screenSize"
  </code></pre>
  
  <p>In the onCreate on my AppcompatActivity I have added:</p>
  
  <pre><code>AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
  </code></pre>
  
  <p>The problem is that when I use setDefaultNightMode, android:configChanges stops working, and recreate de activity in every rotation.</p>
  
  <p>Any kind of help will be welcome</p>