|
@@ -45,15 +45,9 @@ public abstract class BaseListFgtFgt extends BaseFragment {
|
|
|
onInitFragment(fragment, index);
|
|
onInitFragment(fragment, index);
|
|
|
}
|
|
}
|
|
|
transaction.add(R.id.media_frame_container, fragment, tag);
|
|
transaction.add(R.id.media_frame_container, fragment, tag);
|
|
|
- if (index == 0) {
|
|
|
|
|
- onBeforeShowFragment(fragment, index);
|
|
|
|
|
- transaction.show(fragment);
|
|
|
|
|
- onShowFragment(fragment, index);
|
|
|
|
|
- } else {
|
|
|
|
|
- onBeforeHideFragment(fragment, index);
|
|
|
|
|
- transaction.hide(fragment);
|
|
|
|
|
- onHideFragment(fragment, index);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ onBeforeHideFragment(fragment, index);
|
|
|
|
|
+ transaction.hide(fragment);
|
|
|
|
|
+ onHideFragment(fragment, index);
|
|
|
index++;
|
|
index++;
|
|
|
}
|
|
}
|
|
|
transaction.commitAllowingStateLoss();
|
|
transaction.commitAllowingStateLoss();
|