title: Progress dialog stuck on fragment transition
body: <p>I would like to show progress dialog while my fragment is loading.
  I am converting the size of some images in the fragment, so preparing the fragment takes some time. But after I show the progress dialog, it doesn't spin, it just stuck until fragment is getting ready.</p>
  
  <p>Here is my example codes.
  Code for creating fragment:</p>
  
  <pre><code>//show progress bar
  setProgressBarIndeterminateVisibility(true);
  //Create fragment
  MyFragment myFragment = new MyFragment();
  setFragment(myFragment).commit();
  </code></pre>
  
  <p>In my fragment code:</p>
  
  <pre><code>@Override
  public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
      super.onViewCreated(view, savedInstanceState);
      setProgressBarIndeterminateVisibility(false);
  }
  </code></pre>