From 08771af56c589de7b4cf9ae242369162f0cc7822 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Tue, 2 Mar 2021 10:28:39 -0500 Subject: [PATCH] Add new flag to respect statusbar insets Test: manual Fixes: 178115003 Change-Id: I9a3ab61e1a48be5218582ef4d565425c7d8cee40 --- .../SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt b/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt index 680a617e4d266..7679d48254751 100644 --- a/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt +++ b/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt @@ -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) }