mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[ASCollectionView] Move the variable in
This commit is contained in:
@@ -1080,7 +1080,6 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
- (void)rangeController:(ASRangeController *)rangeController didEndUpdatesAnimated:(BOOL)animated completion:(void (^)(BOOL))completion
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
NSUInteger numberOfUpdateBlocks = _batchUpdateBlocks.count;
|
||||
if (!self.asyncDataSource || _superIsPendingDataLoad) {
|
||||
if (completion) {
|
||||
completion(NO);
|
||||
@@ -1090,6 +1089,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
}
|
||||
|
||||
ASPerformBlockWithoutAnimation(!animated, ^{
|
||||
NSUInteger numberOfUpdateBlocks = _batchUpdateBlocks.count;
|
||||
[_layoutFacilitator collectionViewWillPerformBatchUpdates];
|
||||
[self _superPerformBatchUpdates:^{
|
||||
for (dispatch_block_t block in _batchUpdateBlocks) {
|
||||
|
||||
Reference in New Issue
Block a user