Fix UI jank caused by visibility change.
Previously, when animating the footer view and/or its children, we modified visibility so as not to receive focus/accessibility events on hidden views. Unfortunately, changing the visibility of the footer view has a side effect of freeing up space for UiElementContainerView. When this happens, there is a bit of UI jank when the UiElementContainerView takes that available space when really that space should permanently be reserved for the footer. This becomes more obvious in a follow up CL in which we add a shadow above the footer. Now, we don't modify view visibility. Instead, we update focus behavior as appropriate before animations start and after they end. See bug for repro steps. Bug: b:113871610 Change-Id: Ic8aa509c722ace44675a3ab7c7e0453c0aa4a352 Reviewed-on: https://chromium-review.googlesource.com/1197906 Commit-Queue: David Black <dmblack@google.com> Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#588926}
Showing
Please register or sign in to comment