braintree / braintree-android-drop-in

Braintree Drop-In SDK for Android
https://developers.braintreepayments.com/guides/drop-in/android/v2
MIT License
124 stars 79 forks source link

Support Android 15 Edge-to-Edge #482

Open ersen-lw opened 3 months ago

ersen-lw commented 3 months ago

Braintree SDK Version

6.16.0

Environment

Sandbox

Android Version & Device

(Emulator) Pixel 8 Android 15 (API 35)

Braintree dependencies

Using TOML


braintreeDropInUi = "6.16.0"

braintree-dropin-ui = { group = "com.braintreepayments.api", name = "drop-in", version.ref = "braintreeDropInUi" }

Describe the bug

When an application targets Android 15 (API 35), the app renders in edge-to-edge mode, drawing behind system bars. This applies to libraries that display UI like Braintree.

Upon targeting API 35, many Braintree and Cardinal SDK (3DS) are not supporting edge-to-edge which causes certain content to be hidden by system UI.

Pasted Graphic

The Google Pay option is not clickable

Pasted Graphic 1

Top toolbar content is obscured by the status bar

SECURE CHECK

Top toolbar content is obscured by the status bar

To reproduce

  1. Target Android 15 (API 35)
  2. Display Braintree Drop-in
  3. See content is obscured by system UI

This can be reproduce by making the demo target Android 15

Expected behavior

The content is not obscured by system UI.

Screenshots

Added screenshots above. These are from the demo project from this repo.

sshropshire commented 3 months ago

Hi @ersen-lw thanks for filing this a while back. I'm taking a look now. We should have an update soon.

ersen-lw commented 3 months ago

Thanks @sshropshire