Add NSNull check in setSystemChromeSystemUIOverlayStyle (flutter/engine#6011)

This commit is contained in:
Niko Yuwono
2018-08-15 03:45:45 +09:00
committed by Chinmay Garde
parent 9ad6ac6c4a
commit 9aac5e05f9

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;