pull/1771/head
kunfei 3 years ago
parent 73c30e0ed0
commit 6c40be6cb1
  1. 4
      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) { Coroutine.async(callBack.scope) {
item.exploreKinds item.exploreKinds
}.onSuccess { kindList -> }.onSuccess { kindList ->
kotlin.runCatching {
upKindList(flexbox, item.bookSourceUrl, kindList) upKindList(flexbox, item.bookSourceUrl, kindList)
}
}.onFinally { }.onFinally {
rotateLoading.hide() rotateLoading.hide()
if (scrollTo >= 0) { if (scrollTo >= 0) {
@ -67,7 +69,7 @@ class ExploreAdapter(context: Context, val callBack: CallBack) :
scrollTo = -1 scrollTo = -1
} }
} }
} else { } else kotlin.runCatching {
ivStatus.setImageResource(R.drawable.ic_arrow_right) ivStatus.setImageResource(R.drawable.ic_arrow_right)
rotateLoading.hide() rotateLoading.hide()
recyclerFlexbox(flexbox) recyclerFlexbox(flexbox)

Loading…
Cancel
Save