mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-14 16:08:51 +00:00
Don't use the default layout transition animation of no animation is wanted (#2075)
This commit is contained in:
parent
05ebbdc8ed
commit
ee87695fc8
@ -893,6 +893,12 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
|||||||
*/
|
*/
|
||||||
- (void)animateLayoutTransition:(id<ASContextTransitioning>)context
|
- (void)animateLayoutTransition:(id<ASContextTransitioning>)context
|
||||||
{
|
{
|
||||||
|
if ([context isAnimated] == NO) {
|
||||||
|
[self __layoutSublayouts];
|
||||||
|
[context completeTransition:YES];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ASDisplayNode *node = self;
|
ASDisplayNode *node = self;
|
||||||
|
|
||||||
NSAssert(node.isNodeLoaded == YES, @"Invalid node state");
|
NSAssert(node.isNodeLoaded == YES, @"Invalid node state");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user