Add new flag to respect statusbar insets

Test: manual
Fixes: 178115003
Change-Id: I9a3ab61e1a48be5218582ef4d565425c7d8cee40
This commit is contained in:
Fabian Kozynski
2021-03-02 10:28:39 -05:00
parent f51c6d573e
commit 08771af56c

View File

@@ -64,6 +64,7 @@ class PrivacyDialog(
super.onCreate(savedInstanceState)
window?.apply {
attributes.fitInsetsTypes = attributes.fitInsetsTypes or WindowInsets.Type.statusBars()
attributes.receiveInsetsIgnoringZOrder = true
setLayout(context.resources.getDimensionPixelSize(R.dimen.qs_panel_width), WRAP_CONTENT)
setGravity(Gravity.TOP or Gravity.CENTER_HORIZONTAL)
}