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

Unified Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_cell.mm

Issue 2889573002: Fix the ContentSuggestionsCell reuse cleanup (Closed)
Patch Set: Created 3 years, 7 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/cells/content_suggestions_cell.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_cell.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_cell.mm
index bf407ab379fe7bb928bd927903ceaeec44e67fe4..40e4a33be23aa4f26318b86d06a5ccabf4256fc8 100644
--- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_cell.mm
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_cell.mm
@@ -212,7 +212,9 @@ const CGFloat kAnimationDuration = 0.3;
#pragma mark - UICollectionViewCell
- (void)prepareForReuse {
- self.contentImageView.hidden = YES;
+ self.titleLabel.text = nil;
+ [self setSubtitleText:nil];
+ self.displayImage = NO;
}
#pragma mark - UIView
« 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