From 3729943cd31294fa46a68b05d51132c4239576bc Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 13 Jul 2018 10:15:22 -0400 Subject: [PATCH] Fix production build breakage. --- SignalMessaging/categories/UIColor+OWS.h | 2 +- SignalMessaging/categories/UIColor+OWS.m | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SignalMessaging/categories/UIColor+OWS.h b/SignalMessaging/categories/UIColor+OWS.h index 236aad6e5..c31fb084d 100644 --- a/SignalMessaging/categories/UIColor+OWS.h +++ b/SignalMessaging/categories/UIColor+OWS.h @@ -85,8 +85,8 @@ extern NSString *const NSNotificationNameThemeDidChange; #pragma mark - Theme -#ifdef THEME_ENABLED + (BOOL)isThemeEnabled; +#ifdef THEME_ENABLED + (void)setIsThemeEnabled:(BOOL)value; #endif diff --git a/SignalMessaging/categories/UIColor+OWS.m b/SignalMessaging/categories/UIColor+OWS.m index 6f92a6fa4..22c242908 100644 --- a/SignalMessaging/categories/UIColor+OWS.m +++ b/SignalMessaging/categories/UIColor+OWS.m @@ -355,9 +355,13 @@ NSString *const UIColorKeyThemeEnabled = @"UIColorKeyThemeEnabled"; { OWSAssertIsOnMainThread(); +#ifdef THEME_ENABLED + return NO; +#else return [OWSPrimaryStorage.sharedManager.dbReadConnection boolForKey:UIColorKeyThemeEnabled inCollection:UIColorCollection defaultValue:NO]; +#endif } + (void)setIsThemeEnabled:(BOOL)value