|
@@ -45,16 +45,14 @@ public class HomeBottomPageAdapter extends FragmentStatePagerAdapter {
|
|
|
return PagerAdapter.POSITION_NONE;
|
|
|
}
|
|
|
|
|
|
+ @NonNull
|
|
|
@Override
|
|
|
- public Object instantiateItem(ViewGroup container, int position) {
|
|
|
-
|
|
|
- Fragment fragment = null;
|
|
|
- try {
|
|
|
- fragment = (Fragment) super.instantiateItem(container, position);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+ public Object instantiateItem(@NonNull ViewGroup container, int position) {
|
|
|
+ return super.instantiateItem(container, position);
|
|
|
+ }
|
|
|
|
|
|
- return fragment;
|
|
|
+ @Override
|
|
|
+ public void destroyItem(ViewGroup container, int position, Object object) {
|
|
|
+ super.destroyItem(container, position, object);
|
|
|
}
|
|
|
}
|