Skip to content

Android 15 edge-to-edge support on 3DSecure screen #1236

@francescocervone

Description

@francescocervone

Braintree SDK Version

5.2.0

Environment

Both

Android Version & Device

Android 15

Braintree dependencies

I tried the demo on the main's HEAD, which at the time of writing is this commit.

Describe the bug

Android 15 has forced edge to edge automatically for all activities.

The 3DSecure doesn't correctly support the Android 15 edge to edge enforcement.

We depend on Braintree 4.x and we were trying to increase our target SDK to 35 (Android 15), but we found out about this behavior.

So, since the 5.x declares Android 15 support, we decided to upgrade to Braintree 5 first.

Unfortunately though, I tried the demo version on the main's HEAD, which at the time of writing is this commit, and that screen still draws incorrectly behind the system bars.

To reproduce

  • Run a 3DSecure verification on an app targeting Android API 35
  • The 3DSecure screen is drawn behind the system bars incorrectly

Expected behavior

  • All Braintree screens handle window insets correctly in all Android versions, 15 included.

Screenshots

Screenshot_20241210_122321

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions