mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-13 18:00:17 +00:00
Fix -[ASPagerNode view] triggering pendingState + nodeLoaded assert (#564)
This commit is contained in:
parent
9df6909d71
commit
008b847a7a
@ -183,6 +183,7 @@
|
|||||||
|
|
||||||
if (_pendingState) {
|
if (_pendingState) {
|
||||||
_ASCollectionPendingState *pendingState = _pendingState;
|
_ASCollectionPendingState *pendingState = _pendingState;
|
||||||
|
self.pendingState = nil;
|
||||||
view.asyncDelegate = pendingState.delegate;
|
view.asyncDelegate = pendingState.delegate;
|
||||||
view.asyncDataSource = pendingState.dataSource;
|
view.asyncDataSource = pendingState.dataSource;
|
||||||
view.inverted = pendingState.inverted;
|
view.inverted = pendingState.inverted;
|
||||||
@ -191,7 +192,6 @@
|
|||||||
view.usesSynchronousDataLoading = pendingState.usesSynchronousDataLoading;
|
view.usesSynchronousDataLoading = pendingState.usesSynchronousDataLoading;
|
||||||
view.layoutInspector = pendingState.layoutInspector;
|
view.layoutInspector = pendingState.layoutInspector;
|
||||||
view.contentInset = pendingState.contentInset;
|
view.contentInset = pendingState.contentInset;
|
||||||
self.pendingState = nil;
|
|
||||||
|
|
||||||
if (pendingState.rangeMode != ASLayoutRangeModeUnspecified) {
|
if (pendingState.rangeMode != ASLayoutRangeModeUnspecified) {
|
||||||
[view.rangeController updateCurrentRangeWithMode:pendingState.rangeMode];
|
[view.rangeController updateCurrentRangeWithMode:pendingState.rangeMode];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user