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

Add configuration for page mode and displaying the first page as a single page #227

Merged
merged 4 commits into from
May 28, 2019

Conversation

irgendeinich
Copy link
Contributor

@irgendeinich irgendeinich commented May 23, 2019

Resolves #225

Details

We were missing pageMode and related firstPageAlwaysSingle in the ConfigurationAdapter this adds those missing properties.

Acceptance Criteria

configurePageMode(configuration.getString(PAGE_MODE));
}
if (configuration.hasKey(FIRST_PAGE_ALWAYS_SINGLE)) {
configureFirstPageAlwaysSingle(configuration.getBoolean(FIRST_PAGE_ALWAYS_SINGLE));
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the default of configuration.getBoolean(...). What does it return if the value that was set is not a boolean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it's not a boolean an exception is thrown, this makes sense in my opinion so users know if they passed an invalid value in the JS code.

@irgendeinich irgendeinich merged commit d7157d5 into master May 28, 2019
@irgendeinich irgendeinich deleted the reinhard/add-page-mode-config branch May 28, 2019 09:36
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.

[Android] pageMode is ignored
3 participants