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

Idea: @AndroidInstance field annotation to persist via onSaveRestoreInstanceState #132

Open
Buggaboo opened this issue Jan 14, 2017 · 2 comments

Comments

@Buggaboo
Copy link
Contributor

No description provided.

@tobykurien
Copy link
Owner

Nice idea! I generally work around the need to save/restore state by using bundle arguments to fragments and letting the framework do the rest.

@Buggaboo
Copy link
Contributor Author

Buggaboo commented Jan 16, 2017

Yeah, me too :) But since we can't change the state of bundle after the first lifecycle methods (that checks for changes and throws IllegalStateException, we're still relegated to the standard way of persisting objects through on*InstanceState.

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

2 participants