File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -166,22 +166,17 @@ - (void)restoreSystemChromeSystemUIOverlays {
166166}
167167
168168- (void )setSystemChromeSystemUIOverlayStyle : (NSDictionary *)message {
169- NSString * brightness = message[@" statusBarBrightness" ];
170- if (brightness == (id )[NSNull null ])
169+ NSString * style = message[@" statusBarBrightness" ];
170+ if (style == (id )[NSNull null ])
171171 return ;
172172
173173 UIStatusBarStyle statusBarStyle;
174- if ([brightness isEqualToString: @" Brightness.dark" ]) {
174+ if ([style isEqualToString: @" Brightness.dark" ])
175175 statusBarStyle = UIStatusBarStyleLightContent;
176- } else if ([brightness isEqualToString: @" Brightness.light" ]) {
177- if (@available (iOS 13 , *)) {
178- statusBarStyle = UIStatusBarStyleDarkContent;
179- } else {
180- statusBarStyle = UIStatusBarStyleDefault;
181- }
182- } else {
176+ else if ([style isEqualToString: @" Brightness.light" ])
177+ statusBarStyle = UIStatusBarStyleDefault;
178+ else
183179 return ;
184- }
185180
186181 NSNumber * infoValue = [[NSBundle mainBundle ]
187182 objectForInfoDictionaryKey: @" UIViewControllerBasedStatusBarAppearance" ];
You can’t perform that action at this time.
0 commit comments