terrakok / Cicerone

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

Back button clicks #92

Closed adolgiy closed 5 years ago

adolgiy commented 5 years ago

I have an idea. How do you think - is it ok or not?

If we delegate Activity#onBackPressed() to something Cicerone has access and then notify about it everything local stack copy has, so we can remove this ugly nullable current fragment reference in activity.

Think this will also be good because of synchronized and only-available-fragment nature of navigator.