Merge branch 'charlesmchen/themeConcurrency'
This commit is contained in:
commit
1319116a61
@ -13,7 +13,7 @@ extern NSString *const ThemeDidChangeNotification;
|
||||
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
@property (class, readonly, nonatomic) BOOL isDarkThemeEnabled;
|
||||
@property (class, readonly, atomic) BOOL isDarkThemeEnabled;
|
||||
|
||||
+ (void)setIsDarkThemeEnabled:(BOOL)value;
|
||||
|
||||
|
||||
@ -20,8 +20,6 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
|
||||
|
||||
+ (BOOL)isDarkThemeEnabled
|
||||
{
|
||||
OWSAssertIsOnMainThread();
|
||||
|
||||
if (!CurrentAppContext().isMainApp) {
|
||||
// Ignore theme in app extensions.
|
||||
return NO;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user