Commit df02b3a3 authored by wanglei's avatar wanglei

...

parent 32349c45
......@@ -105,6 +105,10 @@ class NewsActivity : BaseActivity<ActivityNewsBinding>() {
}
private fun requestMore(categoryId: Int, changeCategory: Boolean = false) {
if (changeCategory) {
newsAdapter.submitList(listOf())
binding.ivPlaceHolder.visibility = View.VISIBLE
}
isLoading = true
helper.trailingLoadState = LoadState.None
val lastNewsId = newsAdapter.getLastPageNumber()
......
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