修复若干BUG GH_TEST渠道号自动弄成刷新版

This commit is contained in:
kehaoyuan
2018-07-05 11:19:59 +08:00
parent 4713594c7e
commit 00deba962e
5 changed files with 43 additions and 36 deletions

View File

@ -42,7 +42,9 @@ public class BaseDialogWrapperFragment extends BaseDialogFragment {
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getChildFragmentManager().beginTransaction().replace(R.id.fragment_placeholder, mFragmentToWrap).commitNowAllowingStateLoss();
if (mFragmentToWrap != null) {
getChildFragmentManager().beginTransaction().replace(R.id.fragment_placeholder, mFragmentToWrap).commitNowAllowingStateLoss();
}
}
@Override