diff --git a/app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt b/app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt index c57b6a36c..94c176028 100644 --- a/app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt @@ -60,11 +60,13 @@ class FindBookAdapter(private val scope: CoroutineScope) : notifyItemChanged(oldEx) } if (exIndex == position) { - gl_child.visible() + rotate_loading.show() Coroutine.async(scope) { bookSource.getExploreRule().getExploreKinds(bookSource.bookSourceUrl) }.onSuccess { it?.let { + rotate_loading.hide() + gl_child.visible() var rowNum = 0 var columnNum = 0 gl_child.removeAllViews() diff --git a/app/src/main/res/layout/item_find_book.xml b/app/src/main/res/layout/item_find_book.xml index 654ba6c31..1d3fa7c4c 100644 --- a/app/src/main/res/layout/item_find_book.xml +++ b/app/src/main/res/layout/item_find_book.xml @@ -47,4 +47,10 @@ android:columnCount="3" android:visibility="gone" /> + + \ No newline at end of file