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

[Pager] Fix PagerState restoration #418

Merged
merged 1 commit into from
May 17, 2021
Merged

[Pager] Fix PagerState restoration #418

merged 1 commit into from
May 17, 2021

Conversation

chrisbanes
Copy link
Contributor

There's no need to store the page offset as it could technically be out of bounds (example: if the state was stored during an animation).

Fixes #417

There's no need to store the page offset as it could
technically be out of bounds (example: if the state
was stored during an animation).

Fixes #417
@chrisbanes chrisbanes enabled auto-merge (squash) May 17, 2021 15:08
@chrisbanes chrisbanes requested a review from nickbutcher May 17, 2021 15:08
@chrisbanes chrisbanes merged commit 9071dc0 into main May 17, 2021
@chrisbanes chrisbanes deleted the cb/pager-restore branch May 17, 2021 15:54
@chrisbanes chrisbanes added this to the v0.10.0 milestone May 18, 2021
jossiwolf pushed a commit to jossiwolf/accompanist that referenced this pull request Aug 1, 2021
There's no need to store the page offset as it could technically be out of bounds (example: if the state was stored during an animation).

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

Successfully merging this pull request may close these issues.

[Pager] java.lang.IllegalArgumentException: currentPageOffset must be >= 0 and <= 1 after restoring the state
2 participants