Merge "Add new flag to respect statusbar insets" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
103d174741
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user