From ccfa2e2f8381bcca126abba8de3fb326dfb168fc Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Thu, 20 Dec 2018 00:04:45 +0400 Subject: [PATCH] Fix gallery transition in #2 --- LegacyComponents/TGModernGalleryController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LegacyComponents/TGModernGalleryController.m b/LegacyComponents/TGModernGalleryController.m index f375583477..6dd12ae19d 100644 --- a/LegacyComponents/TGModernGalleryController.m +++ b/LegacyComponents/TGModernGalleryController.m @@ -619,15 +619,15 @@ _transitionInDisposable = [[[[transitionFromItemView readyForTransitionIn] take:1] timeout:1.0 onQueue:[SQueue mainQueue] orSignal:[SSignal single:@true]] startWithNext:^(__unused id next) { __strong TGModernGalleryController *strongSelf = weakSelf; if (strongSelf != nil) { - if (strongSelf->_startedTransitionIn) { - strongSelf->_startedTransitionIn(); - } - [strongSelf animateTransitionInFromView:transitionInFromView toView:transitionInToView toViewContentRect:transitionInToViewContentRect]; [strongSelf->_view transitionInWithDuration:0.15]; [strongSelf animateStatusBarTransition:0.2]; strongSelf.view.hidden = false; + + if (strongSelf->_startedTransitionIn) { + strongSelf->_startedTransitionIn(); + } } }]; } else {