Commit 69867c1f authored by adamta's avatar adamta Committed by Commit Bot

[iOS] Prevent swipe on Discover section

Add Discover section to sections that should not allow swiping to
dismiss in the NTP.

Bug: 1085419, 1109684
Change-Id: I878c5e7a5339a130ffded7bdbd39e37f8d64b451
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324870Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Adam Trudeau-Arcaro <adamta@google.com>
Cr-Commit-Position: refs/heads/master@{#794115}
parent 87e0206b
...@@ -620,6 +620,7 @@ NSString* const kContentSuggestionsMostVisitedAccessibilityIdentifierPrefix = ...@@ -620,6 +620,7 @@ NSString* const kContentSuggestionsMostVisitedAccessibilityIdentifierPrefix =
[self.collectionViewModel itemAtIndexPath:indexPath]; [self.collectionViewModel itemAtIndexPath:indexPath];
return ![self.collectionUpdater isMostVisitedSection:indexPath.section] && return ![self.collectionUpdater isMostVisitedSection:indexPath.section] &&
![self.collectionUpdater isPromoSection:indexPath.section] && ![self.collectionUpdater isPromoSection:indexPath.section] &&
![self.collectionUpdater isDiscoverSection:indexPath.section] &&
[self.collectionUpdater contentSuggestionTypeForItem:item] != [self.collectionUpdater contentSuggestionTypeForItem:item] !=
ContentSuggestionTypeLearnMore && ContentSuggestionTypeLearnMore &&
[self.collectionUpdater contentSuggestionTypeForItem:item] != [self.collectionUpdater contentSuggestionTypeForItem:item] !=
......
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