Skip to content

Commit

Permalink
Merge 69cea52 into 36da201
Browse files Browse the repository at this point in the history
  • Loading branch information
lorixx committed Nov 24, 2019
2 parents 36da201 + 69cea52 commit 61a7d68
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/IGListKit/IGListAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -660,12 +660,7 @@ - (void)_updateObjects:(NSArray *)objects dataSource:(id<IGListAdapterDataSource
[[map sectionControllerForObject:object] didUpdateToObject:object];
}

NSInteger itemCount = 0;
for (IGListSectionController *sectionController in sectionControllers) {
itemCount += [sectionController numberOfItems];
}

[self _updateBackgroundViewShouldHide:itemCount > 0];
[self _updateBackgroundViewShouldHide:![self _itemCountIsZero]];
}

- (void)_updateBackgroundViewShouldHide:(BOOL)shouldHide {
Expand Down

0 comments on commit 61a7d68

Please sign in to comment.