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

State restoration #70

Closed
etiennelenhart opened this issue Jan 30, 2019 · 2 comments · Fixed by #121
Closed

State restoration #70

etiennelenhart opened this issue Jan 30, 2019 · 2 comments · Fixed by #121
Assignees
Milestone

Comments

@etiennelenhart
Copy link
Owner

While Eiffel's approach to state handling already helps with restoring state on orientation changes and UI resuming thanks to Architecture Components' ViewModel, another common problem on Android are process kills.
Since ViewModel can't help with this a solution should be investigated to store selected properties of a State using onSaveInstanceState. Especially the new androidx.savedstate library might come in handy. Considering its alpha status, possible other solutions should still be evaluated.

Solutions using reflection are strongly discouraged because of the significant performance overhead and other approaches like compile-time annotation processing should be considered.

@etiennelenhart
Copy link
Owner Author

Postponed until androidx.savedstate is stable and its usage clearer.

@etiennelenhart etiennelenhart added this to the 5.0.0 milestone May 16, 2019
@etiennelenhart
Copy link
Owner Author

Now that androidx.savedstate is in beta and rudimentary documentation is available, this can be implemented.

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

Successfully merging a pull request may close this issue.

1 participant