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

Save view (or mortar presenter) in backstack #76

Closed
lukaspili opened this issue Apr 7, 2015 · 3 comments
Closed

Save view (or mortar presenter) in backstack #76

lukaspili opened this issue Apr 7, 2015 · 3 comments

Comments

@lukaspili
Copy link

Hi,

I have troubles saving the state of a previous view and presenter in Flow's backstack.
My view A shows a google map. When I navigate to view B and then go back to view A through backstack, i find no way to restore the previous google map with all its data.
The current result is that the map is recreated from scratch.

I would appreciate any sample or lead to find a way to restore the previous map.
Really like how Flow and Mortar work together, but this is the real deal breaker for me so far.

Thanks for the help.

@lukaspili lukaspili changed the title Save view and presenter in backstack Save view (or mortar presenter) in backstack Apr 7, 2015
@rjrjr
Copy link
Collaborator

rjrjr commented Apr 8, 2015

One option is to just keep the view around. You don't particularly have to
inflate a new one.

On Tue, Apr 7, 2015 at 9:47 AM Lukas Piliszczuk notifications@github.com
wrote:

Hi,

I have troubles saving the state of a previous view and presenter in
Flow's backstack.
My view A shows a google map. When I navigate to view B and then go back
to view A through backstack, i find no way to restore the previous google
map with all its data.
The current result is that the map is recreated from scratch.

I would appreciate any sample or lead to find a way to restore the
previous map.
Really like how Flow and Mortar work together, but this is the real deal
breaker for me so far.

Thanks for the help.


Reply to this email directly or view it on GitHub
#76.

@rjrjr
Copy link
Collaborator

rjrjr commented Apr 8, 2015

Please use Stack Overflow for this kind of thing in future. Use tags android and flow.

@rjrjr rjrjr closed this as completed Apr 8, 2015
@lukaspili
Copy link
Author

I actually asked that question on stack overflow 2 weeks ago, without success: http://stackoverflow.com/questions/29190673/mortar-flow-save-view-and-presenter-in-backstack

Thanks for the reply.

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