From c1bab5adbdb5610a79c78c439597004769cc9f12 Mon Sep 17 00:00:00 2001 From: Administrator <1760316362@qq.com> Date: Mon, 15 Jul 2019 15:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt | 2 +- app/src/main/java/io/legado/app/model/WebBook.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt b/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt index f337b30f7..a0c64eb43 100644 --- a/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt +++ b/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt @@ -2,7 +2,7 @@ package io.legado.app.help.coroutine import kotlinx.coroutines.* -class Coroutine(private val scope: CoroutineScope, private val block: suspend CoroutineScope.() -> T) { +class Coroutine(private val scope: CoroutineScope, block: suspend CoroutineScope.() -> T) { companion object { diff --git a/app/src/main/java/io/legado/app/model/WebBook.kt b/app/src/main/java/io/legado/app/model/WebBook.kt index 1c5bae931..7fb067215 100644 --- a/app/src/main/java/io/legado/app/model/WebBook.kt +++ b/app/src/main/java/io/legado/app/model/WebBook.kt @@ -31,7 +31,7 @@ class WebBook(private val bookSource: BookSource) { } return@launch BookList.analyzeBookList(response, bookSource, analyzeUrl) } - return@launch mutableListOf() + return@launch arrayListOf() } }