title: Why does BottomSheetDialog turn status bar black?
body: <p>I've implemented a bottom sheet in the <code>onCreate()</code> method of my activity as follows:</p>
  
  <pre><code>bottomSheet = new BottomSheetDialog(this);
  bottomSheet.setContentView(getLayoutInflater().inflate(R.layout.bottom_sheet, null));
  bottomSheet.show();
  </code></pre>
  
  <p>My activity extends <code>AppCompatActivity</code> and has a <code>TabLayout</code> and <code>ViewPager</code> in it.. pretty much a standard UI using material design.</p>
  
  <p>The problem I'm having is that when <code>show()</code> is called, the status bar instantly turns black, adding jumpiness to the otherwise smooth animation of the bottom sheet expanding, not to mention altering the app's color scheme.</p>
  
  <p>I would like the status bar to remain the default color associated with my theme, and darken smoothly as the bottom sheet expands.</p>
  
  <p>I've done quite a bit of searching, but have not been able to find a concrete solution.</p>
  
  <p>Any ideas what could be causing this and what steps, if any, I can take to fix it?</p>
  
  <p>Black Status Bar (UI content removed for simplicity)
  <img src="https://i.stack.imgur.com/0GeEC.png" alt="Black Status Bar (UI content removed for simplicity)"></p>