How to implement onBackPressed() in Fragments?
I solved in this way override onBackPressed in the Activity. All the FragmentTransaction are addToBackStack before commit:
I solved in this way override onBackPressed in the Activity. All the FragmentTransaction are addToBackStack before commit: