From d29a46c8efe66ac9c591ac9b9c61ce294e72f372 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 3 Oct 2019 15:36:25 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/rss/article/RssArticlesViewModel.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt index 5d9470f71..bd82bdda4 100644 --- a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt @@ -24,9 +24,11 @@ class RssArticlesViewModel(application: Application) : BaseViewModel(application it?.let { App.db.rssArtivleDao().insert(*it.toTypedArray()) } + }.onError { + toast(it.localizedMessage) + }.onFinally { + onFinally() } - }.onFinally { - onFinally() } }