Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Can't Save after Detach #15

Closed
mmangliers opened this issue Jul 11, 2016 · 0 comments
Closed

Can't Save after Detach #15

mmangliers opened this issue Jul 11, 2016 · 0 comments

Comments

@mmangliers
Copy link
Contributor

Because we remove the adapter on detach, we can't save after the view is detached (another library I'm using performs the save there, so it's not ideal for me).

A tweak which shouldn't adversely affect anything would be to updateFirstAdapterPosition() in onDetachedFromWindow before removing the adapter, and then we can wrap the call to update in onSaveInstanceState to only occur if the adapter is not null.

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

No branches or pull requests

2 participants