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

Fixed potential crash in BFAppLinkReturnToRefererController when it is initialized without navigation controller. #54

Merged
merged 1 commit into from Aug 20, 2014

Conversation

ghost
Copy link

@ghost ghost commented Aug 7, 2014

Looks like we are removing NSNotificationCenter observation, only in case when there was the controller was initialized with navigation controller - whilst this is not the only way you can initialize the BFAppLinkReturnToRefererController.

  • Observe status bar and device orientation only when attached to the navigation controller
  • Remove observe more efficiently (the removeObserver:name:object: is slower than just removeObserver:, as it performs unnecessary lookups)

…s initialized without navigation controller.
grantland added a commit that referenced this pull request Aug 20, 2014
Fixed potential crash in BFAppLinkReturnToRefererController when it is initialized without navigation controller.
@grantland grantland merged commit f9ca686 into BoltsFramework:master Aug 20, 2014
@ghost ghost deleted the applinks_return_fix branch August 28, 2014 14:31
@facebook-github-bot
Copy link
Contributor

@ghost updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants