Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08771af5 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Add new flag to respect statusbar insets

Test: manual
Fixes: 178115003
Change-Id: I9a3ab61e1a48be5218582ef4d565425c7d8cee40
parent f51c6d57
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
        }