title: How to commit Fragment transactions in FragmentPagerAdapter in onLoadFinish callback method?
body: <p>I would like to notify <code>ViewPagerAdapter</code> that dataset changed in <code>Loader.onLoadFinish</code> callback function. </p>
  
  <p>It is prevented because state of fragments might be saved. </p>
  
  <p>From <a href="http://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html#onLoadFinished" rel="noreferrer">LoaderManager.LoaderCallbacks.onLoadFinished(Loader loader, D data)</a> method documentation:</p>
  
  <blockquote>
    <p>Note that normally an application is not allowed to commit fragment transactions while in this call, since it can happen after an activity's state is saved.`</p>
  </blockquote>
  
  <p>How can I overcome this problem? How can I check in which state <code>Activity</code> is and commit <code>Fragment</code> transaction?</p>