When switch fragment with SwipeRefreshLayout during refreshing, fragment freezes but actually still work

后端 未结 8 1930
温柔的废话
温柔的废话 2020-11-28 04:31

UPDATE: I thought it worked correctly. But after some test trouble still exists *sniff*

Then I made a simpler version to see what exactly happen and

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 04:40

    It works! Just remove the transition from your fragment replacement, in my case I removed the following from my code:

    .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
    

提交回复
热议问题