-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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)
@@ -41,15 +41,15 @@ | |||
using namespace flutter; | |||
|
|||
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
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
51e50e8
into
flutter:flutter-3.16-candidate.0
Original PR: #48271
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.