Commit 8846e970 authored by gambard's avatar gambard Committed by Commit Bot

Removes superfluous lines in ContentSuggestions

The separators of the cells and headers where displayed even if they
had no background.
This CL removes those lines.

Bug: 740565
Change-Id: If6e2ab6225eec5e7cfc0112c8cff475530c479ed
Reviewed-on: https://chromium-review.googlesource.com/602228Reviewed-by: default avatarJean-François Geyelin <jif@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#492004}
parent 9f6e73e4
......@@ -392,6 +392,17 @@ BOOL ShouldCellsBeFullWidth(UITraitCollection* collection) {
return [item cellHeightForWidth:width];
}
- (BOOL)collectionView:(UICollectionView*)collectionView
shouldHideItemSeparatorAtIndexPath:(NSIndexPath*)indexPath {
return [self collectionView:collectionView
shouldHideItemBackgroundAtIndexPath:indexPath];
}
- (BOOL)collectionView:(UICollectionView*)collectionView
shouldHideHeaderSeparatorForSection:(NSInteger)section {
return YES;
}
#pragma mark - MDCCollectionViewEditingDelegate
- (BOOL)collectionViewAllowsSwipeToDismissItem:
......
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