title: Correct way to close DialogFragment when using Navigation component?
body: <p>I am using the Navigation component to show a <code>DialogFragment</code> (<code>&lt;dialog...&gt;...&lt;/dialog&gt;</code> in the <code>navigation.xml</code>) and want to know what's the recommended way to close the Dialog. I tried myself and got the following results:</p>
  
  <p>1) <code>dismiss()</code>in <code>DialogFragment</code>: seems to work fine</p>
  
  <p>2) <code>findNavController().navigateUp()</code>: seems to work fine</p>
  
  <p>3) <code>findNavController().navigate(MyDialogFragmentDirections.actionMyDialogFragmentToMyNormalFragment())</code>: works, but loads a fresh version of the target destination, so depending on the use case this might not be what one wants to have.</p>
  
  <p>Note: My use case is that <code>MyNormalFragment</code>uses <code>MyDialogFragment</code>to get some input, so after <code>MyDialogFragment</code>is shown, I need to get back to the already existing instance of <code>MyNormalFragment</code>.</p>
  
  <p>So for me, only 1) or 2) is correct. Now I am wondering, is there any difference between 1) and 2) ?</p>