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

Remove unnecessary overrides to setDefaultOptions, apply defaultOptions to RNNSideMenuController #6691

Merged
merged 2 commits into from
Oct 20, 2020

Conversation

danilobuerger
Copy link
Collaborator

  • Removes setDefaultOptions from RNNBasePresenter. This is already covered by the synthesized defaultOptions prop.
  • Add calling [presenter setDefaultOptions:] to the default implementation in order to remove all the overrides that do the same thing.

Notice that the override implementation of setDefaultOptions in RNNSideMenuController does not call super. This leads to the defaultOptions only being available in the RNNSideMenuPresenter but not in the controller itself. Therefor causing bugs in accessing options that were set as defaults through the controller (as they are just not available).

An e2e test relies on rotating the side menu screen and checks for a certain height of the side menu.
Through the bugfix, this screen no longer rotated and presented fullscreen as it was now adhering to the default options.
@yogevbd yogevbd merged commit 0f2e2d5 into wix:master Oct 20, 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.

2 participants