mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-14 16:08:51 +00:00
Merge pull request #1302 from nguyenhuy/fix_collection_data_controller
[ASCollectionDataController] Remove unncessary batch layout calls for supplementary nodes.
This commit is contained in:
commit
f4925a107c
@ -46,9 +46,6 @@
|
||||
NSMutableArray<ASIndexedNodeContext *> *contexts = [NSMutableArray array];
|
||||
[self _populateSupplementaryNodesOfKind:kind withMutableContexts:contexts];
|
||||
_pendingContexts[kind] = contexts;
|
||||
|
||||
// Measure loaded nodes before leaving the main thread
|
||||
[self batchLayoutNodesFromContexts:contexts ofKind:kind completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
@ -85,9 +82,6 @@
|
||||
NSMutableArray<ASIndexedNodeContext *> *contexts = [NSMutableArray array];
|
||||
[self _populateSupplementaryNodesOfKind:kind withSections:sections mutableContexts:contexts];
|
||||
_pendingContexts[kind] = contexts;
|
||||
|
||||
// Measure loaded nodes before leaving the main thread
|
||||
[self batchLayoutNodesFromContexts:contexts ofKind:kind completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
@ -123,9 +117,6 @@
|
||||
NSMutableArray<ASIndexedNodeContext *> *contexts = [NSMutableArray array];
|
||||
[self _populateSupplementaryNodesOfKind:kind withSections:sections mutableContexts:contexts];
|
||||
_pendingContexts[kind] = contexts;
|
||||
|
||||
// Measure loaded nodes before leaving the main thread
|
||||
[self batchLayoutNodesFromContexts:contexts ofKind:kind completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user