From 71cb90b5757155eb514e930813ba8c58f38440b2 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 9 Aug 2018 17:30:58 -0600 Subject: [PATCH] Avoid incremental theme-redraws IMO this feels more impressive --- SignalMessaging/categories/Theme.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SignalMessaging/categories/Theme.m b/SignalMessaging/categories/Theme.m index c35cdf208..ed246518e 100644 --- a/SignalMessaging/categories/Theme.m +++ b/SignalMessaging/categories/Theme.m @@ -46,7 +46,9 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled"; [UIUtil setupSignalAppearence]; - [[NSNotificationCenter defaultCenter] postNotificationNameAsync:ThemeDidChangeNotification object:nil userInfo:nil]; + [UIView performWithoutAnimation:^{ + [[NSNotificationCenter defaultCenter] postNotificationName:ThemeDidChangeNotification object:nil userInfo:nil]; + }]; } + (UIColor *)backgroundColor