Commit e266f4c1 authored by Olivier Robin's avatar Olivier Robin Committed by Commit Bot

Hide toolbar in RL screen when opened with no items.

The hiding/showing is normally done via
ReadingListListViewControllerAudience but the initial
setup is done before the navigationController was create.
It is necessary to create the navigationController in the
correct state.

Bug: 1128059
Change-Id: I2303356c71bf70f178a5f9a5c65f023750ecf05d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414273Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Auto-Submit: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807841}
parent 78ad5dde
......@@ -137,7 +137,11 @@
// Present RecentTabsNavigationController.
self.navigationController = [[TableViewNavigationController alloc]
initWithTable:self.tableViewController];
self.navigationController.toolbarHidden = NO;
// The initial call to |readingListHasItems:| may have been received before
// all UI elements were initialized. Call the callback directly to set up
// everything correctly.
[self readingListHasItems:self.mediator.hasElements];
BOOL useCustomPresentation = YES;
if (IsCollectionsCardPresentationStyleEnabled()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment