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

Cycler doesn't permit use of StateRestorationPolicy #55

Open
BenTilbrook opened this issue Dec 1, 2021 · 0 comments
Open

Cycler doesn't permit use of StateRestorationPolicy #55

BenTilbrook opened this issue Dec 1, 2021 · 0 comments

Comments

@BenTilbrook
Copy link

The library hides the implementation details of the RecyclerView.Adapter usage, making it impossible to assign the RecyclerView.Adapter.StateRestorationPolicy to the adapter. This means we can't resolve state restoration issues the policy is intended to address.

Part of the problem is the adapter is assigned "just-in-time" in com.squareup.cycler.Recycler.update, and there doesn't appear to be any way to hook into this mechanism to modify the adapter prior to assignment.

Is there anything that can be done about this? Can this hack be removed, now that StateRestorationPolicy is available?

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

No branches or pull requests

1 participant