From 788f5ce365fef4927f26ed389f33631d0386f756 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 1 Jan 2020 12:42:34 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt index 6f282ef09..27b37fe1a 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt @@ -59,7 +59,8 @@ class MainViewModel(application: Application) : BaseViewModel(application) { execute { val url = "https://gitee.com/alanskycn/yuedu/raw/master/JS/RSS/rssSource" NetworkUtils.getBaseUrl(url)?.let { - val response = HttpHelper.getApiService(it).get(url, mapOf()).execute() + val response = + HttpHelper.getApiService(it).getAsync(url, mapOf()).await() response.body()?.let { body -> val sources = mutableListOf() val items: List> = Restore.jsonPath.parse(body).read("$")