First of all, I am using FragmentStatePagerAdapter to feed a ViewPager with fragments to display.
When app is in the running state (i.e. after
It could be because you are using
getFragmentManager() to instantiate the FragmentStatePagerAdapter while using nested fragments.
CustomFragmentPagerAdapter fragmentPagerAdapter = new CustomFragmentPagerAdapter(getChildFragmentManager());
Answer was found here.