Fix ContentSuggestions view after QRCode scan
When the QRCode scanner is shown, the current view is removed from the view hierarchy. As ContentSuggestions is using the topLayoutGuide as part of its constraints, the constraint was removed. So when the QRCode scanner is dismissed, the collection has no constraint for its top anchor. This CL fixes it by setting the constraint relative to its superview instead of the top layout guide. It also implements a delegate for the header controller. Bug: 750648 Change-Id: Iccee2279db686ce2e6f3060ed505defbdc038a0b Reviewed-on: https://chromium-review.googlesource.com/595652Reviewed-by:Jean-François Geyelin <jif@chromium.org> Commit-Queue: Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#490987}
Showing
Please register or sign in to comment