From 40879461b0f43f90bcac612a9b3e104b3167cba6 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 30 May 2018 15:02:52 -0400 Subject: [PATCH] Suppress animations in nav bar around call window. --- SignalMessaging/ViewControllers/OWSNavigationController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SignalMessaging/ViewControllers/OWSNavigationController.m b/SignalMessaging/ViewControllers/OWSNavigationController.m index 27fb190dd..37bbf0abc 100644 --- a/SignalMessaging/ViewControllers/OWSNavigationController.m +++ b/SignalMessaging/ViewControllers/OWSNavigationController.m @@ -112,6 +112,8 @@ NS_ASSUME_NONNULL_BEGIN { DDLogDebug(@"%@ in %s", self.logTag, __PRETTY_FUNCTION__); + [UIView setAnimationsEnabled:NO]; + if (@available(iOS 11.0, *)) { if (OWSWindowManager.sharedManager.hasCall) { if (UIDevice.currentDevice.isIPhoneX) { @@ -147,7 +149,9 @@ NS_ASSUME_NONNULL_BEGIN // Since the navbar's frame was updated, we need to be sure our child VC's // container view is updated. [self.view setNeedsLayout]; + [self.view layoutSubviews]; } + [UIView setAnimationsEnabled:YES]; } @end