Fix production build breakage.

This commit is contained in:
Matthew Chen 2018-07-13 10:15:22 -04:00
parent cd730e7db3
commit 3729943cd3
2 changed files with 5 additions and 1 deletions

View File

@ -85,8 +85,8 @@ extern NSString *const NSNotificationNameThemeDidChange;
#pragma mark - Theme
#ifdef THEME_ENABLED
+ (BOOL)isThemeEnabled;
#ifdef THEME_ENABLED
+ (void)setIsThemeEnabled:(BOOL)value;
#endif

View File

@ -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