feat: 优化代码

pull/120/head
kunfei 5 years ago
parent 1871fed127
commit 20486e7852
  1. 3
      app/src/main/java/io/legado/app/service/CheckSourceService.kt

@ -14,6 +14,7 @@ import io.legado.app.model.WebBook
import io.legado.app.ui.book.source.manage.BookSourceActivity
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.asCoroutineDispatcher
import org.jetbrains.anko.toast
import java.util.concurrent.Executors
class CheckSourceService : BaseService() {
@ -68,6 +69,8 @@ class CheckSourceService : BaseService() {
}
}
}
}.onError {
toast("校验书源出错:${it.localizedMessage}")
}
task?.invokeOnCompletion {

Loading…
Cancel
Save