Fix production build breakage.
This commit is contained in:
parent
cd730e7db3
commit
3729943cd3
@ -85,8 +85,8 @@ extern NSString *const NSNotificationNameThemeDidChange;
|
||||
|
||||
#pragma mark - Theme
|
||||
|
||||
#ifdef THEME_ENABLED
|
||||
+ (BOOL)isThemeEnabled;
|
||||
#ifdef THEME_ENABLED
|
||||
+ (void)setIsThemeEnabled:(BOOL)value;
|
||||
#endif
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user