mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 01:38:26 +00:00
Impliments open archive function for Activity Center
Summary: Impliments Bloks navigation to open archive native screen Differential Revision: D30125112 fbshipit-source-id: b441b16d430cd0e01b2942a9b5acda4150aeee6d
This commit is contained in:
parent
406addc138
commit
936f558567
1 changed files with 3 additions and 3 deletions
|
|
@ -533,14 +533,14 @@
|
|||
|
||||
- (NSArray *)visibleObjects {
|
||||
IGAssertMainThread();
|
||||
|
||||
|
||||
if (IGListExperimentEnabled(_experiments, IGListExperimentSkipViewSectionControllerMap)) {
|
||||
NSArray<NSIndexPath *> *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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue