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("格式不对") } } }