I want to understand this exception in order to implement a proper fix.
There\'s a ViewPager and it uses a FragmentStatePagerAdapter to instantiate 2 fragments via g
very good ! Since is repeat pager.setAdapter(adapter); when call restoreState cause exception:
Fragment no longer exists for key f0: index 0
we can Release Fragment RootView
public void onDestroyView() {
super.onDestroyView();
if (isRecyclerRootViewAlways()) {
mRootView = null;//<--
}
mMyFragmentLifecycle.onFragmentDestroyView(this);
}