IllegalStateException: is not currently in the FragmentManager

后端 未结 12 2138
予麋鹿
予麋鹿 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:10

    Double-check whether you've implemented onSaveInstanceState and onRestoreInstanceState in your activity, and verify that they're correctly saving and loading the state of your fragments.

提交回复
热议问题