-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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): prevent statusbar rotation after closing InAppBrowser #672
Conversation
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.
Do we need to set the tmpWindow to nil in the hide
method, too?
This change should be backwards compatible, shouldn't it?
not really sure what's the difference between hide and close, but if hide is supposed to not destroy the IAB, then probably shouldn't be done there as it might destroy the IAB session too, but didn't try |
Nice fix, but not fully working at least with our application. If you close the inappbrowser in landscape mode and application under it returns to be in fixed portrait mode, view (UI is has moved) is a little bit higher after that. If you keep device on portrait all the time, that does not happen. It is easy to see if you have navigation bar on top of your UI and you can see it to be more narrow. |
That’s a different problem |
@timbru31, I tested and the rotation was happening when using hide, so I've set it to nil on hide too. |
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 did some quick tests and it looks good to me.
… statusbar rotation after closing InAppBrowser (apache#672)
Platforms affected
ios
Motivation and Context
closes #623
Description
according to the stackoverflow link, setting the tmpWindow to hidden should release it and the regular window would take control, but it's not being released and that causes the statusbar to rotate (because the tmpController can rotate to any direction).
Setting the tmpWindow to nil releases it and the original window takes control and fixes the issue.
Testing
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)