The current FragmentController#pushFragment method allows only pushing passing a Fragment instance. A more recent version of the AndroidX Fragment lib supports adding/replacing Fragments by their classes so that the FragmentFactory is used. This allow developers to control how fragments are instantiated.
This change introduces an additional FragmentController#pushFragment that receives the Fragment class and the arguments so that developers can also use FragmentFactory
FragmentController#pushFragment
method allows only pushing passing a Fragment instance. A more recent version of the AndroidX Fragment lib supports adding/replacing Fragments by their classes so that theFragmentFactory
is used. This allow developers to control how fragments are instantiated.FragmentController#pushFragment
that receives the Fragment class and the arguments so that developers can also useFragmentFactory