title: Pass data/bundle using navigateUp in Android Navigation Component
body: <p><a href="https://stackoverflow.com/q/53298615/1136023">I found the question but does not have solution in code</a></p>
  
  <p>I want to have data when backpress/manual back happens. I am using <code>navigateUp()</code> to go back. How can I pass data to previous fragment? <code>navigateUp()</code> does not have any facility to pass data to previous fragment. Even I did not find solution using <a href="https://developer.android.com/topic/libraries/architecture/navigation/navigation-pass-data#Safe-args" rel="noreferrer">Safe Args</a>. It's passing data forward. I want to have in backward Frad B -> Frag A.</p>
  
  <p>My code to go back to previous fragment</p>
  
  <pre><code>Navigation.findNavController(view).navigateUp()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/b27YH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/b27YH.png" alt="enter image description here"></a></p>
  
  <p>My question is, How can i get data in previous fragment. I can navigate to Frag A from Frag B using </p>