Merge pull request #437 from 10bits/master

修复发现界面点击加载更多不生效
pull/438/head
kunfei 4 years ago committed by GitHub
commit bb0dbf411f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/ui/book/explore/ExploreShowActivity.kt

@ -40,9 +40,9 @@ class ExploreShowActivity : VMBaseActivity<ExploreShowViewModel>(R.layout.activi
loadMoreView.startLoad() loadMoreView.startLoad()
loadMoreView.setOnClickListener { loadMoreView.setOnClickListener {
if (!isLoading) { if (!isLoading) {
isLoading = true
loadMoreView.hasMore() loadMoreView.hasMore()
scrollToBottom() scrollToBottom()
isLoading = true
} }
} }
recycler_view.addOnScrollListener(object : RecyclerView.OnScrollListener() { recycler_view.addOnScrollListener(object : RecyclerView.OnScrollListener() {

Loading…
Cancel
Save