Don't restore ViewPager when Activity is restored
问题 The setup of my project is as follows Activity has Fragment and it has ViewPager with pages supplied by FragmentStatePagerAdapter . The data displayed by ViewPager is fetched from network. When Activity is destroyed and restored, it tries to restore the Fragment that was visible in ViewPager when the Activity was destroyed. But the Fragment inside the ViewPager tries to access data structures that are not fully initialized, as a result crash happens. I don't want the Fragment in ViewPager to