Skip to content
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

fix(ios): statusbar ui issue fixed #11458

Merged
merged 4 commits into from
Feb 5, 2020

Conversation

vijaysingh-axway
Copy link
Contributor

@build build added this to the 9.0.0 milestone Jan 28, 2020
@build build requested a review from a team January 28, 2020 20:54
@build
Copy link
Contributor

build commented Jan 28, 2020

Messages
📖

💾 Here's the generated SDK zipfile.

📖 ✊ The commits in this PR match our conventions! Feel free to Rebase and Merge this PR when ready.
📖

✅ All tests are passing
Nice one! All 6550 tests are passing.
(There are 701 skipped tests not included in that total)

Generated by 🚫 dangerJS against d18915d

@@ -258,6 +261,20 @@ - (void)didReceiveMemoryWarning:(NSNotification *)notification
[super didReceiveMemoryWarning:notification];
}

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You wrap the method inside this #if guard, but register for the notification on all SDK versions. Could this lead to a crash when building with SDK < 13.0?

Copy link
Contributor Author

@vijaysingh-axway vijaysingh-axway Jan 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That code snippet is also inside #if guard . See complete code-
#if IS_SDK_IOS_13 UIWindow *keyWindow = UIApplication.sharedApplication.keyWindow; CGRect frame = keyWindow.windowScene.statusBarManager.statusBarFrame; UIView *view = [keyWindow viewWithTag:TI_STATUSBAR_TAG]; if (!view) { view = [[UIView alloc] initWithFrame:frame]; view.tag = TI_STATUSBAR_TAG; [keyWindow addSubview:view]; } view.frame = frame; view.backgroundColor = [[TiUtils colorValue:value] _color]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidBecomeKey:) name:UIWindowDidBecomeKeyNotification object:nil]; #endif

Replaced above #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 with #if IS_SDK_IOS_13 to be more consistent with code. Though both are same.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duh, i totally missed that since it wasn't showing in the diff. Thanks for updating the constant though, consistency is always good!

@ssekhri
Copy link

ssekhri commented Feb 3, 2020

FR Passed.
Verified on:
Mac OS: 10.15.1
SDK: 9.0.0.v20200131123305
Appc CLI: 7.1.2
JDK: 11.0.4
Node: 10.16.3
Studio: 6.0.0.201911251516
Xcode: 11
Device: iPhone XR(v13.2.2), iOS simulator 13.0

@ssaddique ssaddique merged commit 6a5664b into tidev:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants