From fd1a1ae9b870467ec8b193a023987fd8000f33c7 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 23 Dec 2021 11:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/association/OnLineImportViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/association/OnLineImportViewModel.kt b/app/src/main/java/io/legado/app/ui/association/OnLineImportViewModel.kt index ddc5518ec..29f06ddeb 100644 --- a/app/src/main/java/io/legado/app/ui/association/OnLineImportViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/association/OnLineImportViewModel.kt @@ -159,11 +159,11 @@ class OnLineImportViewModel(app: Application) : BaseViewModel(app) { json.contains("replacement") -> successLive.postValue(Pair("replaceRule", json)) json.contains("themeName") -> - importTextTocRule(json, finally) + importTheme(json, finally) json.contains("name") && json.contains("rule") -> importTextTocRule(json, finally) json.contains("name") && json.contains("url") -> - importTextTocRule(json, finally) + importHttpTTS(json, finally) else -> errorLive.postValue("格式不对") } }