From e5cc72409712ae496ef7de8d9ae30a5cf305c767 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 15 Oct 2021 08:48:27 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 650ad646d..966bdc82d 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 @@ -7,7 +7,6 @@ import io.legado.app.base.VMBaseActivity import io.legado.app.databinding.ActivityTranslucenceBinding import io.legado.app.lib.dialogs.alert import io.legado.app.utils.showDialogFragment -import io.legado.app.utils.toastOnUi import io.legado.app.utils.viewbindingdelegate.viewBinding /** @@ -76,7 +75,7 @@ class OnLineImportActivity : ImportReplaceRuleDialog(url, true) ) else -> { - toastOnUi("url error") + viewModel.determineType(url, this::finallyDialog) finish() } }