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.
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.