Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on Android 8 and 9 when opening the PaymentSheet #3721

Merged
merged 2 commits into from
May 13, 2021

Conversation

michelleb-stripe
Copy link
Contributor

Summary

On Android 8 and 9 the background being set must be a drawable not a color or it will crash. In order to set the background color use background tint. I don't believe the background color is suppose to change when disabled in dark mode.

Motivation

stripe/stripe-react-native#212

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Android 8
Android8-enable-disable

Android 9
Android-9-enable-disable

Android 11
Android11-enable-disable

Copy link
Contributor

@brnunes-stripe brnunes-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!
Dark mode does use the same background color for enabled and disabled.

@michelleb-stripe michelleb-stripe merged commit 387565d into master May 13, 2021
@michelleb-stripe michelleb-stripe deleted the michelleb/background-resource-drawable branch May 13, 2021 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants