mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -59,9 +59,7 @@ class ExploreAdapter(context: Context, val callBack: CallBack) :
|
||||
Coroutine.async(callBack.scope) {
|
||||
item.exploreKinds
|
||||
}.onSuccess { kindList ->
|
||||
kotlin.runCatching {
|
||||
upKindList(flexbox, item.bookSourceUrl, kindList)
|
||||
}
|
||||
upKindList(flexbox, item.bookSourceUrl, kindList)
|
||||
}.onFinally {
|
||||
rotateLoading.hide()
|
||||
if (scrollTo >= 0) {
|
||||
@@ -79,7 +77,7 @@ class ExploreAdapter(context: Context, val callBack: CallBack) :
|
||||
}
|
||||
|
||||
private fun upKindList(flexbox: FlexboxLayout, sourceUrl: String, kinds: List<ExploreKind>) {
|
||||
if (!kinds.isNullOrEmpty()) {
|
||||
if (!kinds.isNullOrEmpty()) kotlin.runCatching {
|
||||
recyclerFlexbox(flexbox)
|
||||
flexbox.visible()
|
||||
kinds.forEach { kind ->
|
||||
|
||||
Reference in New Issue
Block a user