Following information can help us to resolve the issue faster.
没升级fragmationx时使用loadMultipleRootFragment加载两个fragment后使用showHideFragment来显示问题,升级后出现下面的bug
Library version fragmentationx 1.01
Support-v4 version
Logs
java.lang.IllegalStateException: Cannot show Fragment attached to a different FragmentManager. Fragment ServerFragment{41c28978 (46f90c57-00b9-41cb-b868-6ba9a44f1eb7) id=0x7f090200 com.chcit.mobile.mvp.common.ui.fragment.ServerFragment} is already attached to a FragmentManager.
at androidx.fragment.app.BackStackRecord.show(BackStackRecord.java:210)
at me.yokeyword.fragmentation.TransactionDelegate.doShowHideFragment(TransactionDelegate.java:453)
at me.yokeyword.fragmentation.TransactionDelegate.access$500(TransactionDelegate.java:32)
at me.yokeyword.fragmentation.TransactionDelegate$5.run(TransactionDelegate.java:144)
at me.yokeyword.fragmentation.queue.ActionQueue.handleAction(ActionQueue.java:53)
at me.yokeyword.fragmentation.queue.ActionQueue.enqueueAction(ActionQueue.java:45)
at me.yokeyword.fragmentation.queue.ActionQueue.access$000(ActionQueue.java:17)
at me.yokeyword.fragmentation.queue.ActionQueue$1.run(ActionQueue.java:37)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5095)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
Screenshots
In addition, we do not accept issues unrelated to Fragmentation.
Issues Guideline
Following information can help us to resolve the issue faster. 没升级fragmationx时使用loadMultipleRootFragment加载两个fragment后使用showHideFragment来显示问题,升级后出现下面的bug
In addition, we do not accept issues unrelated to Fragmentation.