My app starts with NewAdFragment
and inside this fragment, There is a button that allows user to choose the category, When the user clicks on the button I'll navigate him to ChooserFragment
with passing categories list as an argument, There is RecyclerView inside this fragment and it shows categories.
What do I want? I want when the user chooses an item from RecyclerView, Then it must back to NewAdFragment
with specific data.
I can solve this problem in a lot of ways but maybe there is a method that exists in the navigation component library already.
What is the best way to do that?