Got exception: fragment already active

前端 未结 8 1768
攒了一身酷
攒了一身酷 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:21

    I'm running into the same issue on Xamarin.android. Here's what the documentation says.

    This can only be called before the fragment has been attached to its activity

提交回复
热议问题