pull/32/head
kunfei 5 years ago
parent b66f578bff
commit 4bdc7eb890
  1. 4
      app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt
  2. 6
      app/src/main/res/layout/item_find_book.xml

@ -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()

@ -47,4 +47,10 @@
android:columnCount="3"
android:visibility="gone" />
<io.legado.app.ui.widget.anima.RotateLoading
android:id="@+id/rotate_loading"
android:layout_width="36dp"
android:layout_height="36dp"
android:visibility="gone" />
</LinearLayout>
Loading…
Cancel
Save