Nothing is supposed to append, because no other detent is available.
Actual Behavior:
The application crash with the following error:
java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
...
at com.composables.core.BottomSheetKt.DragIndication$lambda$15(BottomSheet.kt:406)
Library version: 1.11.2
I know that in theory the DragIndication is not necessary for a BottomSheet with only one detent, because it can't be moved with a swipe, but in practice it's possible.
Is it possible to handle this case in the onIndicationClicked function?
Description: Click on
DragIndication
crash when theBottomSheetState
has only one detent set.Steps to Reproduce:
BottomSheet
with the following state:DragIndication
to theBottomSheet
content as follows:DragIndication
Expected Behavior:
Nothing is supposed to append, because no other detent is available.
Actual Behavior:
I know that in theory the
DragIndication
is not necessary for a BottomSheet with only one detent, because it can't be moved with a swipe, but in practice it's possible. Is it possible to handle this case in theonIndicationClicked
function?