title: How to create BottomSheetDialogFragment using Navigation Architecture Component?
body: <p>I am using <strong>BottomSheetDialogFragment</strong> for displaying few custom setting's.</p>
  
  <p><strong>Requirement:</strong></p>
  
  <p>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.</p>
  
  <p><strong>I want to use Navigation Architecture Component to simplify my transaction's.</strong></p>
  
  <p>Issue:
  if i use Navigation Architecture Component to navigate from FragmentA to BottomSheetDialogFragment then i receive below error.</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: dialog must not be null
    BottomSheetDialogFragment</p>
  </blockquote>
  
  <p><em>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.</em> </p>
  
  <pre><code>BottomSheetDialogFragment.show(FragmentManager manager, String tag)
  </code></pre>