Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Android, a bottom sheet whose
detentschanged in the same render that setvisibleto false opened again, empty, at its partial stop, and once swiped away its window stayed over the app and swallowed every touch.rememberModalBottomSheetStateis keyed onskipPartiallyExpanded, so the new detents made a newSheetState;ModalBottomSheetshows every new state, and thatshow()cancelled the renderer'shide()beforeshown = falseran. A closing sheet now keeps the detents it opened with, andshownturns false even whenhide()is cancelled, which also covers a finger grabbing the sheet as it slides away. Checked on an Android 14 device and with a new Robolectric test intests/android, since CI does not build Kotlin.