I am using BottomSheetDialogFragment for displaying few custom setting's.
Requirement:
When i click on any tab in BottomSheetDialogFragment i replace the fragment and add it to backstack so that when user click's onBackPress or Up action it should go back the the last setting's fragment of BottomSheetDialogFragment.
I want to use Navigation Architecture Component to simplify my transaction's.
Issue: if i use Navigation Architecture Component to navigate from FragmentA to BottomSheetDialogFragment then i receive below error.
java.lang.IllegalStateException: dialog must not be null BottomSheetDialogFragment
I don't know how to instantiate BottomSheetDialogFragment using Navigation Architecture Component and and using below code will not have a maintain backstack using Navigation Architecture Component.
BottomSheetDialogFragment.show(FragmentManager manager, String tag)