Commit 4b537624 authored by sczs's avatar sczs Committed by Commit Bot

[ios] Adds HistoryTVC empty tableFooterView.

This was removed in https://crrev.com/c/2058083, but for History's case
this is still needed in order to get rid of the separators when the
tableview is empty.

Other collections hide the separator lines when the screen is shown,
since History has a search function is a bit different and this was
the easiest safest way of doing it.

Bug: 1057998
Change-Id: Ia58ee0bc70ad08daf19c1d0721d894986de4e333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090915Reviewed-by: default avatarChris Lu <thegreenfrog@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748792}
parent 81b38e95
......@@ -165,6 +165,9 @@ const CGFloat kButtonHorizontalPadding = 30.0;
self.clearsSelectionOnViewWillAppear = NO;
self.tableView.allowsMultipleSelection = YES;
self.tableView.accessibilityIdentifier = kHistoryTableViewIdentifier;
// Add a tableFooterView in order to hide the separator lines where there's no
// history content.
self.tableView.tableFooterView = [[UIView alloc] init];
// ContextMenu gesture recognizer.
UILongPressGestureRecognizer* longPressRecognizer = [
......
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