YoKeyword / Fragmentation

[DEPRECATED] A powerful library that manage Fragment for Android
Apache License 2.0
9.72k stars 2.11k forks source link

fragment栈的问题 must call loadRootFragment first #1253

Open minveYu opened 4 years ago

minveYu commented 4 years ago

Issues Guideline

Following information can help us to resolve the issue faster.

In addition, we do not accept issues unrelated to Fragmentation. 首页4个tab,用的loadMultiRootFragment 加载4个同级的fragment, 现在有个情况,想其中一个fragment 去 start 另一个fragment,形成栈,可以回退, 所以这个container fragment 做了一个操作就是 再次loadRootFragment 加载想要显示的fragment 为什么想要显示的fragment start开启新fragment 的时候 报错 must call loadRootFragment first,container fragment 不是已经 执行过了吗?

lmDai commented 4 years ago

问题解决了吗?我也遇到了这个问题Can't find container, please call loadRootFragment() first!

me.yokeyword.fragmentation.TransactionDelegate.getTopFragmentForStart(TransactionDelegate.java:388)