mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
By default, capture the current animation enabledness for collection/table updates (#2827)
This commit is contained in:
parent
c1157084ca
commit
2ea7d4c1c0
@ -749,7 +749,8 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
|
||||
- (void)performBatchUpdates:(void (^)())updates completion:(void (^)(BOOL))completion
|
||||
{
|
||||
[self performBatchAnimated:YES updates:updates completion:completion];
|
||||
// We capture the current state of whether animations are enabled if they don't provide us with one.
|
||||
[self performBatchAnimated:[UIView areAnimationsEnabled] updates:updates completion:completion];
|
||||
}
|
||||
|
||||
- (void)registerSupplementaryNodeOfKind:(NSString *)elementKind
|
||||
|
||||
@ -625,7 +625,8 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
|
||||
- (void)endUpdates
|
||||
{
|
||||
[self endUpdatesAnimated:YES completion:nil];
|
||||
// We capture the current state of whether animations are enabled if they don't provide us with one.
|
||||
[self endUpdatesAnimated:[UIView areAnimationsEnabled] completion:nil];
|
||||
}
|
||||
|
||||
- (void)endUpdatesAnimated:(BOOL)animated completion:(void (^)(BOOL completed))completion;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user