Skip to content

[Android][Liveness 1.6.0] UI misalignment on devices with edge-to-edge (status bar icons overlap with Close/Record buttons) #263

@khuwajahassan15

Description

@khuwajahassan15

Before creating a new issue, please confirm:

Which UI component?

Liveness

Gradle script dependencies

// Put output below this line
com.amplifyframework.ui:liveness:1.6.0

Environment information

# Put output below this line

Device: Pixel 7

Android: 15 (16KB page size)

Liveness SDK: 1.6.0

Integration: Jetpack Compose app

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

📄 Bug Description

After upgrading to com.amplifyframework.ui:liveness:1.6.0 to test on Android 15 (Pixel 7, 16KB page size), the Liveness flow works correctly without crashes.
However, the UI layout is misaligned on edge-to-edge devices:

The Close (X) icon and Record indicator appear underneath the status bar icons.

This results in overlapping / cut-off UI elements at the top of the screen.

The issue seems related to missing handling of WindowInsets / edge-to-edge layout adjustments.

Reproduction steps (if applicable)

✅ Steps to Reproduce

Integrate com.amplifyframework.ui:liveness:1.6.0 into an app.

Run on Pixel 7 / Android 15 with full screen gestures + edge-to-edge enabled.

Launch Face Liveness flow.

Observe the top bar icons (Close, Record).

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


Configuration File

No response

Additional information and screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-maintainer-responseIssue is pending response from an Amplify team memberquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions