From 46020796524d1a398dff7da7a4b6557c9ffab317 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 26 Sep 2019 11:44:22 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/book/source/manage/BookSourceViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt index 3ae268728..31accc240 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt @@ -110,6 +110,7 @@ class BookSourceViewModel(application: Application) : BaseViewModel(application) OldRule.jsonToBookSource(text1)?.let { App.db.bookSourceDao().insert(it) } + toast("成功导入1条") } } else if (text1.isJsonArray()) { val bookSources = mutableListOf() @@ -121,6 +122,7 @@ class BookSourceViewModel(application: Application) : BaseViewModel(application) } } App.db.bookSourceDao().insert(*bookSources.toTypedArray()) + toast("成功导入${bookSources.size}条") } else if (text1.isAbsUrl()) { importSourceUrl(text1) } else {