Fixed
Status Update
Comments
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
jb...@google.com <jb...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
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: