-
Notifications
You must be signed in to change notification settings - Fork 6k
[CP] Fix not being able to hide iOS status bar via setEnabledSystemUIMode #48403
[CP] Fix not being able to hide iOS status bar via setEnabledSystemUIMode #48403
Conversation
…lutter#48271) Fix flutter/flutter#138604 and flutter/flutter#138671 Related PR flutter#45351 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style (cherry picked from commit bec0dac)
|
|
||
| static void SetStatusBarHiddenForSharedApplication(BOOL hidden) { | ||
| #if APPLICATION_EXTENSION_API_ONLY | ||
| #if not APPLICATION_EXTENSION_API_ONLY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never seen not in a preprocessor directive. Is this a non-standard extension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The macro not as alternative representation of ! in cpp.
Related links are as follows
Also used in previous code, such as
engine/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm
Lines 23 to 25 in de99c71
| #if not APPLICATION_EXTENSION_API_ONLY | |
| const NSString* searchURLPrefix = @"x-web-search://?"; | |
| #endif |
| OCMStub([mockApplication sharedApplication]).andReturn(mockApplication); | ||
|
|
||
| // Enabling system UI overlays to update status bar. | ||
| FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"test" project:nil]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file isn't ARC on stable, so all the alloc calls need autorelease.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Original PR: #48271
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.