title: Nested fragment and back stack
body: <p>I have a fragment in which there is a nested fragment which I add in this way:</p>
  
  <pre><code>            if (home == null) {
                  home = new MyFragment();
                  FragmentTransaction transaction = getFragmentManager().beginTransaction();
                  transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
                  transaction.addToBackStack(MyFragment.class.getName());
                  transaction.add(R.id.child_fragment, home).commit();
              }
  </code></pre>
  
  <p>When I enter another fragment and go back the child fragment from above is not there. I checked and the instance is different from null. </p>
  
  <p><strong>UPDATE</strong>: I changed the code as suggested by Ashwin S Ashok but it's still not working.</p>