onResume() not called on ViewPager fragment when using custom Loader

后端 未结 2 2068
借酒劲吻你
借酒劲吻你 2021-02-06 12:22

Short version:

I have a fragment that maintains a ViewPager for displaying two other fragments, let\'s call them FragmentOne a

2条回答
  •  野性不改
    2021-02-06 13:25

    Another workaround that worked for me was to use the MainFragment's loader manager:

    getParentFragment().getLoaderManager().initLoader(0, null, this);
    

提交回复
热议问题