Looking at the source:
`
fun applyWindowInsets(root: View) {
ViewCompat.setOnApplyWindowInsetsListener(root) { v, insets ->
val imeVisible = insets.isVisible(WindowInsetsCompat.Type.ime())
val systemBarsInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars())
val imeInsets = insets.getInsets(WindowInsetsCompat.Type.ime())
val leftInset = systemBarsInsets.left
val rightInset = systemBarsInsets.right
val topInset = systemBarsInsets.top
val bottomInset = if (imeVisible) imeInsets.bottom else systemBarsInsets.bottom
v.setPadding(
leftInset,
topInset,
rightInset,
bottomInset
)
WindowInsetsCompat.CONSUMED
}
}`
The newest SDK 7.0.0 still seems to not handle the edge to edge requirement properly, not taking into account the displayCutout, notch.

Looking at the source:
`
The newest SDK 7.0.0 still seems to not handle the edge to edge requirement properly, not taking into account the displayCutout, notch.