Update git submodules
* Update frameworks/support from branch 'androidx-master-dev'
- Merge "Avoid calling execute in layout / draw passes" into androidx-master-dev
- Avoid calling execute in layout / draw passes
The previous behavior of onStartEnterTransition()
would schedule a commit for the next frame, which
avoiding executing transitions in the middle of
a layout or draw pass (such as when the developer
calls startPostponedEnterTransition() from a
We need to do the same post when calling
executePendingOperations() so as to avoid visual
artifacts (the fragments appearing in their final state
for a single frame before the transition begins).
By tracking whether callStartTransitionListener()
was called directly or whether it was posted, we
can ensure that we are calling markPostponedState()
as soon as possible and calling executePendingOperations()
as early as is safe.
Test: tested in sample app, existing tests pass
1 file changed