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

关于showHideFragment(ISupportFragment showFragment)的用法 #36

Open
doudousang opened this issue Dec 16, 2021 · 0 comments
Open

关于showHideFragment(ISupportFragment showFragment)的用法 #36

doudousang opened this issue Dec 16, 2021 · 0 comments

Comments

@doudousang
Copy link

作者大大以及各位小伙伴,我的项目中,首页底部用了Tab,用loadMultipleRootFragment加载多个同级根Fragment。
其中一个Fragment是购物车,当用户没有登录的时候,我点击这个购物车的tab,需要先跳到登录页,登录完成后再进入这个购物车的Fragment。
AccountHelper.getInstance().doLoginIfNeed(MainFragment.this, new AccountHelper.OnLoginHandler() {
@OverRide
public void next(SupportFragment currentFragment) {
showHideFragment(mFragments.get(position));
}
});
但是登录完成,登录页finish掉,执行 showHideFragment(mFragments.get(position));进入购物车fragment的时候,页面卡主了,打印发现购物车fragment的onSupportVisible()这个方法没有执行。
请问这个问题咋解决呢,有遇到的小伙伴看到了也麻烦告诉我一下,非常感谢。

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

1 participant