We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The text was updated successfully, but these errors were encountered:
官方Fragment在带动画的情况下, 不可见状态出栈,会存在出栈不完全的情况, 已兼容解决,稍后发布新版
Sorry, something went wrong.
Improve the stability of pop()/popTo(), #791
782bd08
v1.3.1
No branches or pull requests
在demo_zhihu中,如果在不可见的父Fragment中去移除他的单例子Fragment,那么这个子Fragment并没有被移除,再次去启动这个Fragment的时候就无法再启动了。具体修改的代码为:
mBtnNext.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
// 和MsgFragment同级别的跳转 交给MsgFragment处理
if (getParentFragment() instanceof ShopFragment) {
((ShopFragment) getParentFragment()).start(CycleFragment.newInstance(1), SINGLETASK);
}
}
});
@OverRide
public void onTabSelected(int position, int prePosition) {
showHideFragment(mFragments[position], mFragments[prePosition]);
if (position != 2) {
onTabReselected(2); // 模拟在不可见Fragment移除子Fragment
}
}
修改完成后进入zhihu demo,点击第三个Tab,点击启动CyclerFragment,然后点击第二个Tab,再点击第三个Tab,再次点击启动CyclerFragment,这时就无法启动这个子Fragment了
The text was updated successfully, but these errors were encountered: