https://kotlinlang.org logo
#compose
Title
# compose
r

rsktash

07/26/2021, 12:36 PM
Hi, why rememberModalBottomSheetState ’s parameter confirmStateChange is called only when sheet is being hidden? When state changes to Expanded it’s not triggered
m

matvei

07/26/2021, 1:52 PM
That sounds like a bug to me. If you create a bug with a small repro sample that would be great, thanks!
r

rsktash

07/26/2021, 2:09 PM
Here is the source code. As you can see the state change is triggered only when half expanded or hidden
m

matvei

07/26/2021, 2:29 PM
It's the code the defines the semantical actions on the bottom sheet for accessibility services. There should be no accessibility actions available if the bottm sheet is not visible, hence the
if
statement. Are you trying to close and expand bottom sheet via accessibility service like TalkBack?
8 Views