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

Properly handle navigate back/up from bottom sheet dialog fragments #306

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

jayohms
Copy link
Collaborator

@jayohms jayohms commented Feb 24, 2024

To properly handle dismissing bottom sheet dialog fragments, it's necessary to cancel the dialog instance instead of popping the backstack to receive all the desired Fragment callbacks. Previously, calling navigateBack() or navigateUp() would dismiss the bottom sheet, but leave the underlying WebView screen stuck on a screenshot instead of the interactive attached WebView.

Fixes #197

…by cancelling the dialog instead of popping the backstack
@jayohms jayohms merged commit 6ab923c into main Feb 24, 2024
1 check passed
@jayohms jayohms deleted the dialog-cancel branch February 24, 2024 14:14
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.

Fix navigateBack() and navigateUp() in bottom sheet dialog fragments
1 participant