-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Save restoration doesn't work when Android destroys activity and create it again. #6
Comments
Fixed in 1.0.0-beta04. Updated the docs with instructions. Thanks again @Grouen ! |
@adrielcafe Still doesn't work when use transitions. Default CurrentScreen() works fine. I think issue is here:
Voyager should use it.screen.key instead of it.screen for key. |
I was unable to reproduce using transitions with "Don't Keep Activities" enabled. But I've done as you sugested, can you validade with 1.0.0-beta05? About the key, for that to work the I'll keep looking for options, maybe KSP could help. Feel free to open a new issue about that. And if you have any suggestion will be very welcome :) |
Issue is fixed, thanks. |
When Android destroys activity Voyager serialize screens and then restore them. But they now are different objects and Voyager uses them as "key" for "navigator.stateHolder.SaveableStateProvider" I think that is why Voyager can't restore state after activity recreation. (Same for tabNavigator.stateHolder.SaveableStateProvider(currentTab))
The text was updated successfully, but these errors were encountered: