π App crash after reopening BottomSheet modal π±π₯Ί
See original GitHub issueHey there, amazing 49ers! π€ π
I hope youβre having a fantastic day! π Iβve stumbled upon a π thatβs causing our app to crash, and I could really use your expertise to squash it. π
Steps to reproduce the issue π΅οΈββοΈ:
- Create a button that, when clicked, opens the BottomSheet modal with the following code:
var page = new DataPickerBottomSheetPage();
page.IsModal = true;
page.ShowHandle = true;
page.Cancelable = true;
page.Show(Window);
- Click on the button π±οΈ and behold the modal in all its glory! π
- Dismiss the BottomSheet modal by pulling it down like a fancy window blind π
- Click on the same button again to reopen the modal π π₯ Boom! The app goes down like a house of cards ππ
Expected behavior π§:
The app should allow us to open and close the BottomSheet modal as many times as our hearts desire, without any crashes. ππ
Actual behavior π΅:
The app crashes when we try to reopen the BottomSheet modal after dismissing it. π’π
Environment π:
| Specification | Details |
|---|---|
| Device Model | Android Emulator - Pixel 5 |
| Operating System | Android 13 |
| BottomSheet Version | 1.0.0-alpha4 |
I know you folks are wizards when it comes to fixing bugs like these! π§ββοΈ So, Iβm sure this issue will be resolved in no time. Thanks in advance for your help! Youβre the best! ππ
Keep up the fantastic work, and may the force be with you! ππ
Issue Analytics
- State:
- Created 6 months ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Bottom sheet crashes app due to racing conditions with ...
I believe the issue is that the animated values are not fully set while the modal is opening or closing, and sometimes it...
Read more >App crashes on theme changed when bottom sheet is ...
The problem is when I open the bottom sheet and then drag my notification shade to toggle the dark theme, my application crashes....
Read more >ModalBottomSheetLayout crashes when rotating from ...
Steps to Reproduce or Code Sample to Reproduce: Open bottom sheet in landscape, move to halfExpanded; Rotate to portrait; App crashes.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi,
1.0.0-alpha6 was just published and it removes the need to use
DetentsCollection. It also fixes this issueI have isolated the issue and will try to get a fix for it. In the meantime, a workaround is to use the
DetentsCollection:Replace
With
And the problem goes away. Alternatively setting the Detents programmatically in the Code-Behind will also fix this issue