异常描述:
IllegalStateException: <MyFragment> is not currently in the Fragme
解决方案:
重载FragmentStatePagerAdapter的saveState()和restoreState(Parcelable state, ClassLoader loader),不再调用super.saveState()和super.restoreState(Parcelable state, ClassLoader loader)即可
总结:这仅仅是快速解决状态保存时所引发的问题,但并最优解决方法。