Commit 1b93e86e authored by jyx's avatar jyx

代码优化

parent 35428122
......@@ -122,18 +122,13 @@ class TxVideoFragment : BaseFragment(), RecommendView {
}
override fun autoListSuc(list: BannerList) {
val list1 = arrayListOf<VedioBean>()
for (i in 0..2) {
list1.add(list.list[i])
}
if (recommendPage == 1) {
videos.clear()
videos.addAll(list1)
recommend_view.loadData(list1)
videos.addAll(list.list)
recommend_view.loadData(list.list)
} else {
videos.addAll(list1)
recommend_view.loadMoreData(list1)
videos.addAll(list.list)
recommend_view.loadMoreData(list.list)
recommend_view.hideLoadMore()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment