Fixed
Status Update
Comments
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #2
Jeremy, is this still an issue? I think the problem was that you had two transitions targeting the same View for the same action (e.g. two Slide() transitions).
jb...@google.com <jb...@google.com> #3
I have a similar issue with plain AnimatorSet:
set.start()
set.pause()
set.setCurrentPlayTime(100)
set.setCurrentPlayTime(0)
set.setCurrentPlayTime(100)
set.resume()
doesn't play animation in resume().
Description
Component used:
Fragment
Version used:
1.3.0-beta01
Devices/Android versions reproduced on:
Google Pixel 4 XL
There are some key components here:
startPostponedEnterTransition
instantly after postponingThe effect is really noticeable when using the MDC transitions since they are currently not handling cancelations gracefully so it leaves the target view with alpha 0.
One fix is to always wait calling
startPostponedEnterTransition
at least one frame by posting to a handler or usingyield()
with Coroutines.You may wonder why I'm calling start instantly and it's because the data is cached: