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

Custom setup strategy #124

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

VitalyNikonorov
Copy link

Add functionality for adding custom strategy for restoring some specific fields.
It can be very useful when:

  • You wanna add nontrivial logic for new and old value. (e.g. while view was in recreating process some changes happened in presenter, and you do not want lose them)
  • With Kotlin lateinit fields (e.g. instance state has been saved before lateinit var has been initialised and then you don't want set null in lateinit var after restoring state)

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

Successfully merging this pull request may close these issues.

1 participant