removing fragment with popBackStack();
<p>I have a few fragments in one activity. In Main Activity I implemented <code>popBackStack();</code> in <code>onBackPressed();</code> </p>

<p>So that, you can always go back to previous fragment clicking back button. <em>But <code>popBackStack();</code> doesn't remove the fragment I just left</em>. </p>

<blockquote>
  <p>How to achieve removing current fragment each time, we click back
  button?</p>
</blockquote>