Fragment declared target fragment that does not belong to this FragmentManager

前端 未结 3 2118
温柔的废话
温柔的废话 2020-12-29 08:17

I have made an activity A which has a fragment X in it. In fragment X, EditText item has on click event which opens fragment Y. This fragment displays a list of names. I pre

3条回答
  •  悲&欢浪女
    2020-12-29 08:26

    To new users where the "getFragmentManager" only work for it but don't want use deprecated method, the method "getParentFragmentManager" work too.

提交回复
热议问题