Got exception: fragment already active

前端 未结 8 1743
攒了一身酷
攒了一身酷 2021-01-30 12:49

I have a fragment;

MyFragment myFrag = new MyFragment();

I put bundle data to this fragment:

         


        
8条回答
  •  独厮守ぢ
    2021-01-30 13:16

    Try removing the previous fragment before adding the new one: https://stackoverflow.com/a/6266144/969325

提交回复
热议问题