From 0ec3d76d5a0ff043b83cdb58ca8690e6e9df719a Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 6 Oct 2022 21:16:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/book/explore/ExploreShowActivity.kt | 14 ++++----- .../app/ui/book/search/SearchActivity.kt | 4 --- .../app/ui/widget/recycler/LoadMoreView.kt | 30 +++++++++++++++---- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/explore/ExploreShowActivity.kt b/app/src/main/java/io/legado/app/ui/book/explore/ExploreShowActivity.kt index 0e9e2d06b..8f3a29f98 100644 --- a/app/src/main/java/io/legado/app/ui/book/explore/ExploreShowActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/explore/ExploreShowActivity.kt @@ -22,7 +22,6 @@ class ExploreShowActivity : VMBaseActivity) { - isLoading = false + loadMoreView.stopLoad() if (books.isEmpty() && adapter.isEmpty()) { loadMoreView.noMore(getString(R.string.empty)) } else if (books.isEmpty()) { diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt index 96bb152c2..36dbbc162 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt @@ -26,7 +26,6 @@ import io.legado.app.lib.dialogs.alert import io.legado.app.lib.theme.* import io.legado.app.ui.book.info.BookInfoActivity import io.legado.app.ui.book.source.manage.BookSourceActivity -import io.legado.app.ui.widget.recycler.LoadMoreView import io.legado.app.utils.* import io.legado.app.utils.viewbindingdelegate.viewBinding import kotlinx.coroutines.Dispatchers.IO @@ -56,7 +55,6 @@ class SearchActivity : VMBaseActivity