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
If you don't want the fragments to get reclaimed when they are offscreen, you should be using FragmentPagerAdapter and not FragmentStatePagerAdapter.
FragmentPagerAdapter
FragmentStatePagerAdapter