[ios] DiscoverFeed layout and spinner enhancements
- Prevents the same FeedVC from being re-added to the VC hierarchy, and if a new FeedVC is set, removes the old one from the VC hierarchy. - Uses KVO to observe of Feed contentSize changes, so we can reload the Collection view and display the Feed. Without this the Feed wouldn't appear after it has been loaded. Credit to adamta@ crrev.com/c/2342580 - Sets a minimum height for the Feed Cell, this way the loading spinner will always be displayed. Bug: 1085419 Change-Id: I9d9ef7978a667a2eddc62c0b8e1aad5300185cc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2347372 Commit-Queue: Sergio Collazos <sczs@chromium.org> Reviewed-by:Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#796853}
Showing
Please register or sign in to comment