IllegalStateException: is not currently in the FragmentManager

后端 未结 12 2133
予麋鹿
予麋鹿 2021-01-31 08:40

I know it sounds like a duplicate of FragmentStatePagerAdapter IllegalStateException: is not currently in the FragmentManager but his solution isn\'t relevan

12条回答
  •  一向
    一向 (楼主)
    2021-01-31 09:13

    Use getChildFragmentManager() instead of getFragmentManager() if you have fragments hierarchy. eg. if you have fragments pager.

提交回复
热议问题