Revert "Fix UI jank caused by visibility change."
This reverts commit 9bc4c7ef. Reason for revert: CL fixed UI jank but regressed accessibility. Will re-implement with another approach. Original change's description: > 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} TBR=xiaohuic@chromium.org,dmblack@google.com # Not skipping CQ checks because original CL landed > 1 day ago. Bug: b:113871610 Change-Id: I81f93ff5b641fab87e9b00fffc1c6c428ff44388 Reviewed-on: https://chromium-review.googlesource.com/1216812Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: David Black <dmblack@google.com> Cr-Commit-Position: refs/heads/master@{#590083}
Showing
Please register or sign in to comment