Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot show Fragment attached to a different FragmentManager. #22

Open
lxfeng opened this issue Nov 19, 2020 · 2 comments
Open

Cannot show Fragment attached to a different FragmentManager. #22

lxfeng opened this issue Nov 19, 2020 · 2 comments

Comments

@lxfeng
Copy link

lxfeng commented Nov 19, 2020

version : api 'me.xuexuan:fragmentationx:1.0.6'

log:
java.lang.IllegalStateException

Cannot show Fragment attached to a different FragmentManager. Fragment MFragment{9761232 (fd8ecaff-bafb-44d8-8431-d8f1f625a1ae) id=0x7f0901b8 com.xxx.MFragment} is already attached to a FragmentManager

1 androidx.fragment.app.BackStackRecord.show(BackStackRecord.java:210)
2 me.yokeyword.fragmentation.TransactionDelegate.doShowHideFragment(TransactionDelegate.java:453)
3 me.yokeyword.fragmentation.TransactionDelegate.access$500(TransactionDelegate.java:32)
4 me.yokeyword.fragmentation.TransactionDelegate$5.run(TransactionDelegate.java:144)
5 me.yokeyword.fragmentation.queue.ActionQueue.handleAction(ActionQueue.java:53)
6 me.yokeyword.fragmentation.queue.ActionQueue.enqueueAction(ActionQueue.java:45)
7 me.yokeyword.fragmentation.queue.ActionQueue.access$000(ActionQueue.java:17)
8 me.yokeyword.fragmentation.queue.ActionQueue$1.run(ActionQueue.java:37)
9 android.os.Handler.handleCallback(Handler.java:900)
10 android.os.Handler.dispatchMessage(Handler.java:103)
11 android.os.Looper.loop(Looper.java:219)
12 android.app.ActivityThread.main(ActivityThread.java:8349)
13 java.lang.reflect.Method.invoke(Native Method)
14 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
15 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

@php-cpm
Copy link

php-cpm commented Feb 8, 2021

有人解决了吗

@YangJunCoding
Copy link

有人嗎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants