title: Don't restore ViewPager when Activity is restored
body: <p>The setup of my project is as follows</p>
  
  <p><code>Activity</code> has <code>Fragment</code> and it has <code>ViewPager</code> with pages supplied by <code>FragmentStatePagerAdapter</code>.</p>
  
  <p>The data displayed by <code>ViewPager</code> is fetched from network.</p>
  
  <p>When <code>Activity</code> is destroyed and restored, it tries to restore the <code>Fragment</code> that was visible in <code>ViewPager</code> when the <code>Activity</code> was destroyed. But the <code>Fragment</code> inside the <code>ViewPager</code> tries to access data structures that are not fully initialized, as a result crash happens.</p>
  
  <p>I don't want the <code>Fragment</code> in <code>ViewPager</code> to be <code>recreated</code>. </p>
  
  <p>One way that works is to pass <code>null</code> in <code>super.Oncreate(savedInstance)</code> of the <code>Activity</code>. But it will not allows me to restore state in any of other <code>Fragments</code> also which is not what I want.</p>
  
  <p>What is the correct way to do it?</p>