From 4bdc7eb8907d9536c17fd874c16cb7544ce13ef5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 4 Sep 2019 11:56:23 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/findbook/FindBookAdapter.kt | 4 +++- app/src/main/res/layout/item_find_book.xml | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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