Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm

Issue 2927563002: Hide the ink for the custom-design cells (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
index 45428e1b425488a742e17cf13541247740cd4702..5e776fdc2e96958c221b42baccac095fae8a383e 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
@@ -191,6 +191,17 @@ using CSCollectionViewItem = CollectionViewItem<SuggestedContent>;
#pragma mark - MDCCollectionViewStylingDelegate
+// TODO(crbug.com/724493): Use collectionView:hidesInkViewAtIndexPath: when it
+// is fixed. For now hidding the ink prevent cell interaction.
+- (UIColor*)collectionView:(UICollectionView*)collectionView
+ inkColorAtIndexPath:(NSIndexPath*)indexPath {
+ if ([self.collectionUpdater
+ shouldUseCustomStyleForSection:indexPath.section]) {
+ return [UIColor clearColor];
+ }
+ return nil;
+}
+
- (UIColor*)collectionView:(nonnull UICollectionView*)collectionView
cellBackgroundColorAtIndexPath:(nonnull NSIndexPath*)indexPath {
if ([self.collectionUpdater
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698