title: onBackPressed() popBackStack issues
body: <p>I have seen many of the popbackstack issues on SO and based on my code it looks like what I am trying to do should work.</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          FragmentManager fm = getFragmentManager();
          FragmentTransaction ft = fm.beginTransaction();
          ft.replace(R.id.content_frame, new MainFragment());
          ft.addToBackStack("Attend"); //here is the add to backstack
          ft.commit();
  
      }
  </code></pre>
  
  <p>This shows my main fragment inside my blank layout.</p>
  
  <p>Later I have a onOptionsItemSelected which kicks off a new fragment.</p>
  
  <pre><code>FragmentManager fm1 = getFragmentManager();
                  FragmentTransaction ft1 = fm1.beginTransaction();
                  ft1.replace(R.id.content_frame, new ServiceFragment());
                  ft1.addToBackStack("ServiceTimes");
                  ft1.commit();
                  return true;
  </code></pre>
  
  <p>This fragment shows up. Here is where the problem starts. I press the back button expecting to go back to main fragment. </p>
  
  <pre><code>@Override
  public void onBackPressed() {
      FragmentManager fm = getFragmentManager();
      if(fm.getBackStackEntryCount() &gt; 0) {
          Toast.makeText(getApplicationContext(),"popstack",Toast.LENGTH_SHORT).show();
          fm.popBackStackImmediate("Attend", fm.POP_BACK_STACK_INCLUSIVE);
  
      } else {
          Toast.makeText(getApplicationContext(),"Super",Toast.LENGTH_SHORT).show();
          super.onBackPressed();
      }
  }
  </code></pre>
  
  <p>I added a Toast popup to show me what was happening and when the back button is pressed I get a blank white screen with "popstack" Toast message (Telling me the "if" statement is correct". When I hit it again I get "super" (again it is what I expect).</p>
  
  <p>I don't understand why my code wont go back to the main fragment?</p>