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

Unable to store router's backstack. #31

Closed
uburoiubu opened this issue Nov 10, 2017 · 4 comments
Closed

Unable to store router's backstack. #31

uburoiubu opened this issue Nov 10, 2017 · 4 comments

Comments

@uburoiubu
Copy link

uburoiubu commented Nov 10, 2017

I have an Activity inside which a Controller (CardController) inside which I have a ViewPager with Controllers as Pages which in their turn could be opened (i.e. pushed) - again - as Controller. How would I save ViewPager state and overall stack of controllers which get pushed on CardController using your ViewState concept? I get how I can save data for adapter, but I don't get how I store controller stack resulting from user's choice which controller to open?

So here's an example flow:

Activity - CardController created -> user chooses a Tab > user chooses an item inside a tab > Controller gets opened. The device is rotated. Everything is recreated.

@sevar83
Copy link

sevar83 commented Nov 11, 2017

Did you try with RETAIN_DETACH for the controller with the ViewPager. And do you use RouterPagerAdapter as adapter for the ViewPager?

@uburoiubu
Copy link
Author

@sevar83, thanks for response. I did both. Here I elaborate more on that:

https://stackoverflow.com/questions/47232228/conductors-controller-unexpected-lifecycle

@sockeqwe
Copy link
Owner

sockeqwe commented Nov 11, 2017 via email

@uburoiubu
Copy link
Author

Thanks for your answer anyway.

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

3 participants