|
|
@@ -47,27 +47,8 @@ public class SecondCategoryMainFragment extends CategoryMainFragment<SecondCateg
|
|
|
return new SecondCategoryMainPresenter(getModel(SecondCategoryMainModel.class), this);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- protected void onAfterDestroyViewInternal() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
protected void onAfterDestroyInternal() {
|
|
|
- if (null != spinnerOrder) {
|
|
|
- spinnerOrder.setOnItemSelectedListener(null);
|
|
|
- spinnerOrder = null;
|
|
|
- }
|
|
|
- recyclerView = null;
|
|
|
- mainSeriesView = null;
|
|
|
- if (null != viewFilter) {
|
|
|
- viewFilter.setOnClickListener(null);
|
|
|
- viewFilter = null;
|
|
|
- }
|
|
|
- if (null != seriesPresenter) {
|
|
|
- seriesPresenter.dispose();
|
|
|
- seriesPresenter = null;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -75,7 +56,6 @@ public class SecondCategoryMainFragment extends CategoryMainFragment<SecondCateg
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
protected String getCategoryNumber() {
|
|
|
return CategoryID.CATEGORY_2;
|
|
|
@@ -101,6 +81,7 @@ public class SecondCategoryMainFragment extends CategoryMainFragment<SecondCateg
|
|
|
}
|
|
|
});
|
|
|
recyclerView.setLayoutManager(gridLayoutManager);
|
|
|
+
|
|
|
recyclerView.setPadding(ResourceUtil.dpToPx(23), ResourceUtil.dpToPx(1), ResourceUtil.dpToPx(23), ResourceUtil.dpToPx(41));
|
|
|
recyclerView.addItemDecoration(new GridItemDecoration(ResourceUtil.dpToPx(2), ResourceUtil.dpToPx(13), ResourceUtil.dpToPx(2), ResourceUtil.dpToPx(13)) {
|
|
|
@Override
|
|
|
@@ -114,9 +95,9 @@ public class SecondCategoryMainFragment extends CategoryMainFragment<SecondCateg
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void drawContentsBanner(List<CategoryBannerBean> bannerBeans, List<CategoryContentsBean> contents) {
|
|
|
+ public void drawContentsBanner(List<CategoryBannerBean> bannerBeans, List<CategoryContentsBean> contentsBeans) {
|
|
|
|
|
|
- adapter = new SecondCategoryMainAdapter(getActivity(), bannerBeans, contents, (Event event) -> {
|
|
|
+ adapter = new SecondCategoryMainAdapter(getActivity(), bannerBeans, contentsBeans, (Event event) -> {
|
|
|
presenter.onEvent(event);
|
|
|
});
|
|
|
recyclerView.setAdapter(adapter);
|