From 53802d1a48bef63a05dbdfdd21e064087ff71276 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 5 Mar 2019 10:24:22 -0800 Subject: [PATCH] Deconflict "bottom view" layout and keyboard animations. --- SignalMessaging/ViewControllers/OWSViewController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SignalMessaging/ViewControllers/OWSViewController.m b/SignalMessaging/ViewControllers/OWSViewController.m index 4019173e7..31350bd91 100644 --- a/SignalMessaging/ViewControllers/OWSViewController.m +++ b/SignalMessaging/ViewControllers/OWSViewController.m @@ -23,7 +23,7 @@ UIInterfaceOrientationMask DefaultUIInterfaceOrientationMask(void) @property (nonatomic, weak) UIView *bottomLayoutView; @property (nonatomic) NSLayoutConstraint *bottomLayoutConstraint; -@property (nonatomic) BOOL shouldAnimatedBottomLayout; +@property (nonatomic) BOOL shouldAnimateBottomLayout; @end @@ -71,14 +71,14 @@ UIInterfaceOrientationMask DefaultUIInterfaceOrientationMask(void) { [super viewDidAppear:animated]; - self.shouldAnimatedBottomLayout = YES; + self.shouldAnimateBottomLayout = YES; } - (void)viewDidDisappear:(BOOL)animated { [super viewDidDisappear:animated]; - self.shouldAnimatedBottomLayout = NO; + self.shouldAnimateBottomLayout = NO; } - (void)viewDidLoad @@ -216,7 +216,7 @@ UIInterfaceOrientationMask DefaultUIInterfaceOrientationMask(void) }; - if (self.shouldAnimatedBottomLayout) { + if (self.shouldAnimateBottomLayout) { updateLayout(); } else { [UIView performWithoutAnimation:updateLayout];