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(ad-hoc): Prevent starting of nAPM and Card Tokenization on Android configuration changes #225

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

vitalii-vanziak-cko
Copy link
Collaborator

Description

Standalone Compose implementations of nAPM and Card Tokenization are started explicitly in onAttach() method of their respective BottomSheetDialogFragment.
onAttach() method is called again on Android configuration changes (e.g. dark/light theme, language, etc...) causing viewModel.start() to be called again as well, leading to inconsistent state and sending of redundant lifecycle events.
This PR prevents subsequential starts when flow is already started.

@vitalii-vanziak-cko vitalii-vanziak-cko merged commit 6f22519 into master Sep 23, 2024
1 check passed
@vitalii-vanziak-cko vitalii-vanziak-cko deleted the fix/ad-hoc/vm-init branch September 23, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants