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

[Navigation Material] Catch exceptions when hiding sheet #1518

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

jossiwolf
Copy link
Collaborator

When our sheetState.hide() call got cancelled (e.g. when the activity/ModalBottomSheetLayout size changed, like when showing IME and adding ime padding), so would the whole produceState block. We now catch (and ignore) exceptions from hide() as there is no actionable resolution for us.

Test: Manual test, instrumented test blocked by b/269613287
Fixes: #1503, #1499

…ting

When our `sheetState.hide()` call got cancelled (e.g. when the activity/ModalBottomSheetLayout size changed, like when showing IME and adding ime padding), so would the whole produceState block. We now catch (and ignore) exceptions from `hide()` as there is no actionable resolution for us.

Test: Manual test, instrumented test blocked by b/269613287
Fixes: google#1503, google#1499
@jossiwolf jossiwolf merged commit 4f29fdb into google:main Feb 22, 2023
@jossiwolf jossiwolf deleted the jw/hide-cancelled-early branch February 22, 2023 19:22
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.

[Navigation Material] BottomSheetNavigator does not open the sheet
2 participants