Recursive entry to executePendingTransactions

╄→гoц情女王★ 提交于 2019-11-27 13:57:09
Bryan Dunlap

You are attempting to use fragments nested within other fragments, by way of your FragmentTabHost.

In your StatisticsTab fragment, change this:

mTabHost.setup(getActivity(), getFragmentManager(), R.id.realtabcontent);

to this:

mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.realtabcontent);


Then, make sure to use the parent FragmentManager to commit the main fragment change, by changing getFragmentManager() to getActivity().getSupportFragmentManager() inside BreweryStatistics.onArticleSelected().


See:
ViewPager: Recursive entry to executePendingTransactions
Nested Fragments using support library v4 revision 11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!