material-components-android
material-components-android copied to clipboard
[Bottom Sheet] Weird animation when dismissing modal Bottom Sheet with back button/gesture on 1.10.0
trafficstars
Hi, there is weird animation artifact introduced on 1.10.0. I think it is related to adding predictive back press.
It only happens if you use back button or gesture to dismiss. Dismissing when tapped outside is not affected. As you can see, on 1.10.0 there is some sort of artifact as it is disappearing. Animation seems to stop and repeat a bit just as about to finish.
Video from 1.9.0
https://github.com/material-components/material-components-android/assets/14060247/58c7aa57-e050-49ec-9588-512cda05dc66
Video from 1.10.0
https://github.com/material-components/material-components-android/assets/14060247/b27e19d4-becb-45cf-b9c3-fbf30e0927f1