title: Remove of the ChildFragmentManager is not working as expected
body: <p>I have a Parent <code>Fragment</code> containing a Child <code>Fragment</code> which displays some data.</p>
  
  <p>At some point the Child Fragment broadcasts that the user is finished (that there is no data to be displayed). At this point I want to remove this useless fragment but I somehow don't success. Am I missing something?</p>
  
  <p>The way I <strong>add</strong> the fragment to the container (and it works really good):</p>
  
  <pre><code>if (swipeFragment == null)
      swipeFragment = new SwipeViewFragment();
  if (getActivity() != null) {
      getChildFragmentManager().beginTransaction().add(R.id.jobSearchContainer, swipeFragment, "swipe").commitAllowingStateLoss();
      status = SWIPE;
  }
  </code></pre>
  
  <p>The way I planed to <strong>remove</strong> it (but <strong>it doesn't work</strong> and it is all the variations I tried):</p>
  
  <pre><code>Fragment swipe = getChildFragmentManager().findFragmentByTag("swipe");
  if (swipe == null){
      throw new RuntimeException("Nope");
  }
  getChildFragmentManager().beginTransaction().remove(swipe).commit();
  getChildFragmentManager().beginTransaction().hide(swipe).commit();
  getChildFragmentManager().popBackStack();
  getFragmentManager().beginTransaction().remove(swipe).commit();
  </code></pre>
  
  <p>I am missing something?</p>
  
  <p>Thanks</p>
  
  <p>PS: When I say that it doesn't work: I mean the fragment is not getting removed and I have no output in logcat</p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>    Fragment swipe = getChildFragmentManager().findFragmentByTag("swipe");
      if (swipe == null){
          throw new RuntimeException("Nope");
      }
      Log.d("DEBUG", ""+getChildFragmentManager().getFragments().size());
      getChildFragmentManager().beginTransaction().remove(swipe).commit();
      getChildFragmentManager().popBackStack();
      Log.d("DEBUG", ""+getChildFragmentManager().getFragments().size());
  </code></pre>
  
  <p>Has for a result:</p>
  
  <pre><code>1
  1
  </code></pre>