Using viewpager2 with FragmentStateAdapter has a similar behaviour than FragmentStatePagerAdapter
异常 Fragment no longer exists for key
解决方法;
viewpager2.setSaveEnabled(false) 或者
overriding restoreState at our adapter and return null
Using viewpager2 with FragmentStateAdapter has a similar behaviour than FragmentStatePagerAdapter
异常 Fragment no longer exists for key
解决方法;
viewpager2.setSaveEnabled(false) 或者
overriding restoreState at our adapter and return null