title: PopBackStack but keep the first fragment in android
body: <p>I am working on fragment transaction, and the backstack is like this:</p>
  
  <pre><code>fragA =&gt; fragB =&gt; fragC =&gt; fragD
  </code></pre>
  
  <p>I would like to return to fragA after back fromn the fragD</p>
  
  <pre><code>fragD =&gt; onBackPress =&gt; fragA
  </code></pre>
  
  <p>So, I tried code like:</p>
  
  <pre><code>getChildFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
  </code></pre>
  
  <p>but it clear all the backstack , how can I keep the first fragment in the backstack? Thanks a lot </p>