mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +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
|
- (void)rangeController:(ASRangeController *)rangeController didEndUpdatesAnimated:(BOOL)animated completion:(void (^)(BOOL))completion
|
||||||
{
|
{
|
||||||
ASDisplayNodeAssertMainThread();
|
ASDisplayNodeAssertMainThread();
|
||||||
NSUInteger numberOfUpdateBlocks = _batchUpdateBlocks.count;
|
|
||||||
if (!self.asyncDataSource || _superIsPendingDataLoad) {
|
if (!self.asyncDataSource || _superIsPendingDataLoad) {
|
||||||
if (completion) {
|
if (completion) {
|
||||||
completion(NO);
|
completion(NO);
|
||||||
@@ -1090,6 +1089,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
|||||||
}
|
}
|
||||||
|
|
||||||
ASPerformBlockWithoutAnimation(!animated, ^{
|
ASPerformBlockWithoutAnimation(!animated, ^{
|
||||||
|
NSUInteger numberOfUpdateBlocks = _batchUpdateBlocks.count;
|
||||||
[_layoutFacilitator collectionViewWillPerformBatchUpdates];
|
[_layoutFacilitator collectionViewWillPerformBatchUpdates];
|
||||||
[self _superPerformBatchUpdates:^{
|
[self _superPerformBatchUpdates:^{
|
||||||
for (dispatch_block_t block in _batchUpdateBlocks) {
|
for (dispatch_block_t block in _batchUpdateBlocks) {
|
||||||
|
|||||||
Reference in New Issue
Block a user