title: How to remove white bar above actionbar when using Theme.AppCompat.Light.DarkActionBar
body: <p>I have a problem when I set the theme on my app to Theme.AppCompat.Light.DarkActionBar. For some reason there is a white bar above my actionbar. How do I remove this? Unfortunately, I can't show you a picture of it as I'm not allowed to post pictures yet. But it's just a white empty bar with the same title as the action bar has.</p>
  
  <p>My onCreate method looks like this as of now:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      if(PreferenceManager.getDefaultSharedPreferences(getBaseContext()).getString("theme_preference", "1").equals("AppTheme")) {
          setTheme(R.style.AppTheme);
      } else {
          setTheme(R.style.DarkTheme);
      }
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.activity_main_transmit);
  </code></pre>
  
  <p>AppTheme is Theme.AppCompat.Light.DarkActionBar and DarkTheme is Theme.AppCompat.</p>
  
  <p>How do I remove the white bar that appears?</p>