fix bug of tag

This commit is contained in:
unknown
2020-03-30 19:26:52 +08:00
parent e0465321c3
commit 689d4ccee4
2 changed files with 6 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import com.alibaba.android.arouter.launcher.ARouter
import com.mogo.module.authorize.authprovider.invoke.AuthorizeConstant
import com.mogo.module.authorize.authprovider.invoke.AuthorizeInvokerConstant.Companion.AUTHORIZE_TYPE_LAUNCHER_MAIN
import com.mogo.module.authorize.authprovider.module.IMogoAuthorizeModuleManager
import com.mogo.module.guide.GuideConstant.Companion.PATH_GUIDE_MODULE_NAME
import com.mogo.module.guide.fragment.GuideFragment
import com.mogo.module.guide.util.SharedPreferenceUtil.hasGuide
import com.mogo.module.guide.util.SharedPreferenceUtil.setGuideFinish
@@ -33,7 +34,8 @@ object GuideBizManager {
private fun addGuideFragmentToStack() {
if (!hasGuide()) {
serviceApi?.let {
val builderWrapper = FragmentDescriptor.Builder().fragment(GuideFragment()).build()
val builderWrapper = FragmentDescriptor.Builder().fragment(GuideFragment())
.tag(PATH_GUIDE_MODULE_NAME).build()
it.fragmentManagerApi.push(builderWrapper)
}
}