title: Fragment is not recreated after popBackStack()
body: <p>I have an Activity with a Layout named "container" where Fragments are inflated in using FragmentTransactions</p>
  
  <pre><code>FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
  transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE);
  transaction.replace(R.id.container, SomeFragment.newInstance());
  transaction.addToBackStack(null);
  transaction.commit();
  </code></pre>
  
  <p>One Fragment inflates another fragment with two more Fragments in a TabLayout. This is done with a TabLayout and a ViewPager. Everything works well until I pop it from the backstack. </p>
  
  <pre><code>getSupportFragmentManager().popBackStack();
  </code></pre>
  
  <p>When I do this, the tabs are recreated and all the lifecycle methods are called. However, they have no content. They layouts seem not to be inflated.</p>
  
  <p>I have a method called initUI(View v) which is called in </p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.fragment_tabs, container, false);
      initUI(rootView);
      return rootView;
  }
  </code></pre>
  
  <p>It does the setup for the TabLayout.</p>
  
  <pre><code>private void initUI(View rootView) {
      pager = (ViewPager) rootView.findViewById(R.id.viewPagerCollected);
      tabLayout = (TabLayout) getActivity().findViewById(R.id.tabs);
      pager.setAdapter(new MyPagerAdapter(getActivity().getSupportFragmentManager()));
      tabLayout.setupWithViewPager(pager);
      tabLayout.setVisibility(View.VISIBLE);
  }
  </code></pre>
  
  <p>Again, this method is called but doesn't seem to do anything when popping the backstack. </p>
  
  <p>What am I doing wrong here? Why is the Fragment not recreated properly even though the onCreateView and initUI are being called?</p>
  
  <p>EDIT: In my TabsFragment, each Fragment has a RecyclerView. When clicking one of the Items, another Fragment opens up, displaying detailed information to the user.</p>
  
  <p>Here the user can navigate back. When doing this, the TabsFragment is visible again but this time without any content. It seems like the inner fragments have not being inflated this time around.</p>