From 60510c59a113e248c54be9ca1abe131bd4f11ced Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 15 Oct 2021 09:31:29 +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 --- .../java/io/legado/app/ui/association/OnLineImportActivity.kt | 1 - .../java/io/legado/app/ui/association/OnLineImportViewModel.kt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt b/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt index 966bdc82d..2e2de2e43 100644 --- a/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt @@ -76,7 +76,6 @@ class OnLineImportActivity : ) else -> { viewModel.determineType(url, this::finallyDialog) - finish() } } } 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 c164d8e71..8c257a28f 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 @@ -164,6 +164,7 @@ class OnLineImportViewModel(app: Application) : BaseViewModel(app) { importTextTocRule(json, finally) json.contains("name") && json.contains("url") -> importTextTocRule(json, finally) + else -> errorLive.postValue("格式不对") } } }