Android Studio status bar coloring does not work
<p>When we first started building our app, the statusbar automaticly use the colorPrimaryDark specified in the color.xml file. Now after a couple of weeks of codeing, we noticed that it doesn't work anymore and it uses the color colorPrimary instead. To get around this we now have these two statements on all of our activities:</p>

<pre><code> Window window = this.getWindow();
 window.setStatusBarColor(getResources().getColor(R.color.colorPrimaryDark));
</code></pre>

<p>Which seems a bit confusing to us. I have searched for this question before and I understood that it was a bug wihtin the appcompat framework. We are currently using 23.2.1, our minSdkVersion is 15 and targetSdkVersion is 23.</p>

<p>Does anyone know what we might have done to break this, or is this some kind of bug within Android Studio?</p>