Replacing Fragment does not work properly while swipeRefresh is running

大憨熊 提交于 2019-12-06 01:16:12

Its a bug. Google may fix it soon.

Issue 78062

I have met the same question and I even didn't use addToBackStack,at first I think the fragment hasn't been replaced,but I start a new thread and try to find the old fragment by fragmentmanager and find that it has been replaced,I think what you see is not the real fragment,you can regard it as the phantom which the swipe view creates to show an animation.

By coincidence,I find that if you setTransition() for the transaction and it will work properly,maybe the transition animation does the trick.

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