Add NSNull check in setSystemChromeSystemUIOverlayStyle (#6011)

This commit is contained in:
Niko Yuwono 2018-08-15 03:45:45 +09:00 committed by Chinmay Garde
parent 7ec5f8ada4
commit 6e780fdc67

View File

@ -140,6 +140,9 @@ using namespace shell;
- (void)setSystemChromeSystemUIOverlayStyle:(NSDictionary*)message {
NSString* style = message[@"statusBarBrightness"];
if (style == (id)[NSNull null])
return;
UIStatusBarStyle statusBarStyle;
if ([style isEqualToString:@"Brightness.dark"])
statusBarStyle = UIStatusBarStyleLightContent;