Delay calling uiDoneClosing until all animations are finished

uiDoneClosing sets the index which does a lot of work, so if we are also
playing an animation during that, the animation quality suffers quite a
bit. With this change, we check whether there are any ongoing layout
animations and postpone the call until the animation finishes.


Change-Id: I8a37e7cd37a2ec3758c3150d4e2b1715908e4358
Commit-Queue: Yusuf Ozuysal <>
Reviewed-by: Wei-Yin Chen (陳威尹) <>
Reviewed-by: Matthew Jones <>
Cr-Commit-Position: refs/heads/master@{#663280}
1 file changed