mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
By default, capture the current animation enabledness for collection/table updates (#2827)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user