Navigating back to FragmentPagerAdapter -> fragments are empty

后端 未结 5 712
庸人自扰
庸人自扰 2020-12-04 11:23

I have a Fragment (I\'ll call it pagerFragment) that is added to the backstack and is visible. It holds a viewPager with a FragmentPagerAdapt

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 12:04

    Use getChildFragmentManager() instead of getSupportFragmentManager(). It will work fine.

提交回复
热议问题