From 936f558567567b6fc7c7a625ed09103d79715f91 Mon Sep 17 00:00:00 2001 From: Benjamin Fishbein Date: Mon, 9 Aug 2021 09:19:13 -0700 Subject: [PATCH] Impliments open archive function for Activity Center Summary: Impliments Bloks navigation to open archive native screen Differential Revision: D30125112 fbshipit-source-id: b441b16d430cd0e01b2942a9b5acda4150aeee6d --- Source/IGListKit/IGListAdapter.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/IGListKit/IGListAdapter.m b/Source/IGListKit/IGListAdapter.m index e9cf4cdb..ecfc2986 100644 --- a/Source/IGListKit/IGListAdapter.m +++ b/Source/IGListKit/IGListAdapter.m @@ -533,14 +533,14 @@ - (NSArray *)visibleObjects { IGAssertMainThread(); - + if (IGListExperimentEnabled(_experiments, IGListExperimentSkipViewSectionControllerMap)) { NSArray *visibleIndexPaths = [self.collectionView indexPathsForVisibleItems]; NSMutableIndexSet *visibleSections = [NSMutableIndexSet new]; [visibleIndexPaths enumerateObjectsUsingBlock:^(NSIndexPath * _Nonnull indexPath, NSUInteger idx, BOOL * _Nonnull stop) { [visibleSections addIndex:indexPath.section]; }]; - + NSMutableArray *visibleObjects = [NSMutableArray new]; [visibleSections enumerateIndexesUsingBlock:^(NSUInteger section, BOOL * _Nonnull stop) { id object = [self objectAtSection:section]; @@ -990,7 +990,7 @@ // only return a cell if it belongs to the section controller // this association is created in -collectionView:cellForItemAtIndexPath: UICollectionViewCell *cell = [self.collectionView cellForItemAtIndexPath:indexPath]; - + if (IGListExperimentEnabled(_experiments, IGListExperimentSkipViewSectionControllerMap)) { if ([self sectionControllerForSection:indexPath.section] == sectionController) { return cell;