title: popBackStack causes calling oncreateView of fragment again and again
body: <p>I have 3 fragment A, B,C.I wrote piece of code for replacing them and maintaining backstack:</p>
  
  <pre><code> public void addFragment(Fragment fragmentToAdd, String fragmentTag) {
          FragmentManager supportFragmentManager = getSupportFragmentManager();
          Fragment activeFragment = getActiveFragment();
          FragmentTransaction fragmentTransaction = supportFragmentManager
                  .beginTransaction();
          if (null != activeFragment) {
              fragmentTransaction.hide(activeFragment);
          }
          fragmentTransaction.replace(R.id.layout_child_activity, fragmentToAdd,
                  fragmentTag);
  
         if (supportFragmentManager.getBackStackEntryCount() &gt; 1) {
              supportFragmentManager.popBackStack();
          }
          fragmentTransaction.addToBackStack(fragmentTag);
          fragmentTransaction.commit();
      }
  </code></pre>
  
  <p>Here in this piece of code  </p>
  
  <pre><code>if (supportFragmentManager.getBackStackEntryCount() &gt; 1) {
      supportFragmentManager.popBackStack();
  }
  </code></pre>
  
  <p>I using for pop the latest fragment if stack length is more than 1. Now due to this when length is going greater than 1 than it is calling onCreate view again and again.
  Like : </p>
  
  <ol>
  <li>open A.</li>
  <li>open B.</li>
  <li>open C.<strong>(In case of open C. onCreateView of A is called. )</strong></li>
  </ol>
  
  <p>Why I am getting such kind of behavior ? When I am removing that italic code than it is not happening.</p>