title: Android fullscreen AlertDialog
body: <p>I'm trying to make a full screen dialog in my Android application, but I'm not able to expand it to the status bar. You can see the gray status bar in the image below.</p>
  <p><strong>EDIT 1:</strong>
  It seems to be a problem related to the operating system installed and not to the Android components, because I'm experiencing this problem only on certain devices.</p>
  <p><a href="https://i.stack.imgur.com/Utlhp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Utlhp.png" alt="enter image description here" /></a></p>
  <p>AlertDialog creation:</p>
  <pre><code>    val builder = MaterialAlertDialogBuilder(this, R.style.FullscreenDialogStyle)
      val binding = DialogSuccessBinding.inflate(layoutInflater)
      binding.SuccessDialogMessage.text = getString(R.string.AddGuestCard_Success)
      builder.setView(binding.root)
      builder.background = ColorDrawable(getColor(R.color.primary))
      builder.setBackgroundInsetBottom(0)
      builder.setBackgroundInsetTop(0)
      builder.setBackgroundInsetStart(0)
      builder.setBackgroundInsetEnd(0)
      builder.show()
  </code></pre>
  <p>AlertDialog style:</p>
  <pre><code>&lt;style name=&quot;FullscreenDialogStyle&quot; parent=&quot;Theme.AppCompat.NoActionBar&quot;&gt;
      &lt;item name=&quot;android:windowBackground&quot;&gt;@color/primary&lt;/item&gt;
      &lt;item name=&quot;android:navigationBarColor&quot;&gt;@color/primary&lt;/item&gt;
      &lt;item name=&quot;android:statusBarColor&quot;&gt;@color/primary&lt;/item&gt;
      &lt;item name=&quot;android:layout_gravity&quot;&gt;center&lt;/item&gt;
      &lt;item name=&quot;android:windowFullscreen&quot;&gt;true&lt;/item&gt;
      &lt;item name=&quot;android:windowNoTitle&quot;&gt;true&lt;/item&gt;
      &lt;item name=&quot;android:windowIsFloating&quot;&gt;false&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>