In general without MVP, usually I create an interface for that purpose and let the fragments implement that interface than ovveride onBackPressed() of activity and call interface.OnBackPressed() to handle the functionality.
But i am confused that how should i handle it with MVP or I should say how to handle it correctly with MVP.
What is the best way to do the same?
Aucun commentaire:
Enregistrer un commentaire