-
Notifications
You must be signed in to change notification settings - Fork 594
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
Calling BottomSheetView#showWithSheetView(...)
may result in a stuck undismissible sheet
#48
Comments
As a probably totally broken workaround I do: void onClick(View view) {
if (sheetView.isSheetShowing()) {
return;
}
sheetView.showWithSheetView(...);
try {
Method method = BottomSheetLayout.class.getDeclaredMethod(
"setState", BottomSheetLayout.State.class);
method.setAccessible(true);
method.invoke(sheetView, BottomSheetLayout.State.PEEKED);
} catch (Exception e) {
throw new RuntimeException(e);
}
} and it fixes the issue. |
BottomSheetView#showWithSheetView(...)
may result in a stuck undismissable sheetBottomSheetView#showWithSheetView(...)
may result in a stuck undismissible sheet
I'm not sure there's anything we can do about this. Seems like the onus should be on the developer to debounce the clicks (or more specifically, calls to |
This should not be put on the developer to debounce clicks. It should 'just work'. I'll submit a pull request in the next couple of hours which fixes this. |
Fixed in master, will be out in the next release |
Steps how to reproduce:
#dismissSheet()
nor by dragging it.To finally dismiss it you have to do:
The text was updated successfully, but these errors were encountered: