agrosner
10/12/2022, 12:59 PMZach Klippenstein (he/him) [MOD]
10/12/2022, 3:23 PMMotionDurationScale
to 0, then yea that’s how to do it. That’s also how the compose animation system handles a11y-disabled animations.agrosner
10/12/2022, 3:37 PMagrosner
10/12/2022, 3:37 PMagrosner
10/12/2022, 5:09 PMagrosner
10/12/2022, 5:10 PMZach Klippenstein (he/him) [MOD]
10/13/2022, 1:17 AMZach Klippenstein (he/him) [MOD]
10/13/2022, 1:18 AMagrosner
10/13/2022, 1:27 AMDoris Liu
10/13/2022, 6:17 PMMotionDurationScale
to be adjusted for test purposes. Please feel to file a feature request for it.
In the meantime, you could set the "animator duration scale" to 0 for your tests via ContentResolver or developer options. The MotionDurationScale is observing that duration scale, so you'll be indirectly changing it. See https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]ondurationScale&ss=androidx%2Fplatform%2Fframeworks%2Fsupportagrosner
10/17/2022, 7:53 PM