Skip to content

Edge to Edge Issue #48

Description

@arsonblock

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions