You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following on #5844, if an application that uses stripe-android library has opt-in to predictive back gesture, Activity.onBackPressed() callback will not be called when user press the back button.
This will cause various bugs as some activities expect onBackPressed() to be called. onBackPressed() implementation should be replaced with OnBackPressedCallback
Code to reproduce
Opt in to predictive back gesture, launch one of the affected activity. Press back button. onBackPressed() is not called
Android version
Android 13 api 33
SDK classes
After a quick search, I listed some implementation of onBackPressed() in the codebase:
Hi there 👋 Thanks for bringing this to our attention. We’ll improve support for the predictive back gesture behavior and include this in our next release.
Summary
Following on #5844, if an application that uses stripe-android library has opt-in to predictive back gesture,
Activity.onBackPressed()
callback will not be called when user press the back button.This will cause various bugs as some activities expect
onBackPressed()
to be called.onBackPressed()
implementation should be replaced withOnBackPressedCallback
Code to reproduce
Opt in to predictive back gesture, launch one of the affected activity. Press back button. onBackPressed() is not called
Android version
Android 13 api 33
SDK classes
After a quick search, I listed some implementation of onBackPressed() in the codebase:
The text was updated successfully, but these errors were encountered: