terrakok / Cicerone

🚦 Cicerone is a lightweight library that makes the navigation in an Android app easy.
Other
2.58k stars 218 forks source link

How to send back the result #105

Closed mancj closed 4 years ago

mancj commented 5 years ago

Thank you for a good library!

You wrote that returning of the result is removed from the library, because this problem is not related to the navigation. But the problem remains, it is not clear which approach to use for this, how to return back the data to the previous activity/fragment?

adolgiy commented 5 years ago

Here is the answer - PhotoSelection.java

terrakok commented 4 years ago

You should use common shared state between screens. When one screen change this state than other listen changes and handles it.