title: Why is Fragment.addToBackStack() causing the Back button to do nothing?
body: <ol>
  <li>Activity 1 is visible. Press a button, and Activity 2 opens.</li>
  <li>Activity 2 adds fragment A to itself (and back stack) and it displays fine</li>
  <li>Pressing a button within the fragment transitions to another fragment, B</li>
  <li>Press Back. Nothing happens. Huh? The Back press is seemingly absorbed and not acted upon, the display remains the same.</li>
  <li>Press Back a second time, it reverts to the Activity 1, as expected.</li>
  </ol>
  
  <p>Why is my fragment not being shown in step 4? I've added the fragment to the back stack, so why (when the Back button seems aware of its existence) does it not show the fragment?</p>
  
  <p>Here's the code I'm using in Activity 2 to open Fragment A.</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
      setContentView(R.layout.act_profile_edit);
      FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
      transaction.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
      transaction.addToBackStack(null);
      transaction.add(android.R.id.content, new MyFragment());
      transaction.commit();
  }
  </code></pre>
  
  <p>And here's the code to open Fragment B</p>
  
  <pre><code>    FragmentTransaction transaction = getFragmentManager().beginTransaction();
      transaction.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
      transaction.add(android.R.id.content, new MyOtherFragment());
      transaction.commit();
  </code></pre>