title: Disable adding fragment to backstack in Navigation Architecture Component
body: <p>Suppose i have 4 fragments: A, B, C, X, and I can navigate between them in this way:</p>
  
  <pre><code>... -&gt; A -&gt; C -&gt; X    and ... -&gt; B -&gt; C -&gt; X
  </code></pre>
  
  <p>But when I'm in fragment X call <code>mNavController.navigateUp()</code> I want skip fragment C and go to fragment A or B. What I need to do?</p>
  
  <p>UPD: I need solution only for Navigation Architecture Component <a href="https://developer.android.com/topic/libraries/architecture/navigation/" rel="noreferrer">https://developer.android.com/topic/libraries/architecture/navigation/</a>
  Thanks!</p>