private void switchContent(SortContentDelegate delegate) {
final XiaoXuDelegate contentDelegate =
SupportHelper.findFragment(SORT_DELEGATE_PARENT.getChildFragmentManager(),
SortContentDelegate.class);
if (contentDelegate != null) {
contentDelegate.getSupportDelegate().replaceFragment(delegate, false);//是否加入回退栈
}
}
执行findFragment时出现 java.lang.IllegalStateException: Fragment has not been attached yet.异常