use of com.hotbitmapgg.bilibili.adapter.section.HomeBangumiBannerSection in project bilibili-android-client by HotBitmapGG.
the class HomeBangumiFragment method finishTask.
@Override
protected void finishTask() {
mSwipeRefreshLayout.setRefreshing(false);
mIsRefreshing = false;
hideEmptyView();
Observable.from(banners).compose(bindToLifecycle()).forEach(bannersBean -> bannerList.add(new BannerEntity(bannersBean.getLink(), bannersBean.getTitle(), bannersBean.getImg())));
mSectionedRecyclerViewAdapter.addSection(new HomeBangumiBannerSection(bannerList));
mSectionedRecyclerViewAdapter.addSection(new HomeBangumiItemSection(getActivity()));
mSectionedRecyclerViewAdapter.addSection(new HomeBangumiNewSerialSection(getActivity(), newBangumiSerials));
if (!bangumibobys.isEmpty()) {
mSectionedRecyclerViewAdapter.addSection(new HomeBangumiBobySection(getActivity(), bangumibobys));
}
mSectionedRecyclerViewAdapter.addSection(new HomeBangumiSeasonNewSection(getActivity(), season, seasonNewBangumis));
mSectionedRecyclerViewAdapter.addSection(new HomeBangumiRecommendSection(getActivity(), bangumiRecommends));
mSectionedRecyclerViewAdapter.notifyDataSetChanged();
}
Aggregations