From 6c40be6cb1a4185a7e63d4983c29f3f3decd8ba5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 9 Apr 2022 17:40:40 +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 --- .../java/io/legado/app/ui/main/explore/ExploreAdapter.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt b/app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt index ba350cb1c..cf4f0f59d 100644 --- a/app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt @@ -59,7 +59,9 @@ class ExploreAdapter(context: Context, val callBack: CallBack) : Coroutine.async(callBack.scope) { item.exploreKinds }.onSuccess { kindList -> - upKindList(flexbox, item.bookSourceUrl, kindList) + kotlin.runCatching { + upKindList(flexbox, item.bookSourceUrl, kindList) + } }.onFinally { rotateLoading.hide() if (scrollTo >= 0) { @@ -67,7 +69,7 @@ class ExploreAdapter(context: Context, val callBack: CallBack) : scrollTo = -1 } } - } else { + } else kotlin.runCatching { ivStatus.setImageResource(R.drawable.ic_arrow_right) rotateLoading.hide() recyclerFlexbox(flexbox)