title: Get fragment from NavController
body: <p>I have one NavController (navOrdersController) with 2 fragments inside. My current fragment is OrderDetailFragment and I want access to first Fragment (OrdersFragment) to update data in MainActivity. How can I do this?</p>
  
  <p><a href="https://i.stack.imgur.com/Miv7O.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Miv7O.png" alt="enter image description here"></a></p>
  
  <p>I tried findFragmentByTag and findFragmentByID but always return null.</p>
  
  <p>I got access OrderDetailFragment with:</p>
  
  <pre><code>this.supportFragmentManager.fragments[position].findNavController().currentDestination
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/3fgjx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3fgjx.png" alt="enter image description here"></a></p>
  
  <p>But I need previous fragment. Thank you very much</p>