Do not restart shelf nav widget animations with same target values
Shelf navigation widget layout may get updated while the previous animation is still in progress. Do not restart the animation if the target opacity or bounds do not change. While here, do not update shelf navigation layout from shelf config observer. Shelf layout manager handles shelf config changes, and will call UpdateLayout as necessary (so calls from the shelf navigation widget would be duplicative). BUG=1101084 Change-Id: I3a89847ebfe63e69fe869623e58c58b35c38d966 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276654Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#784194}
Showing
Please register or sign in to comment