From 7ff2132bb9cfc04dfa23b426a9cae9bf604c26f6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 14 Oct 2022 22:47:55 +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 --- .../main/java/io/legado/app/ui/main/rss/RssFragment.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt b/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt index 427632170..4d0f74306 100644 --- a/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt @@ -15,6 +15,7 @@ import io.legado.app.data.appDb import io.legado.app.data.entities.RssSource import io.legado.app.databinding.FragmentRssBinding import io.legado.app.databinding.ItemRssBinding +import io.legado.app.lib.dialogs.alert import io.legado.app.lib.theme.primaryColor import io.legado.app.lib.theme.primaryTextColor import io.legado.app.ui.rss.article.RssSortActivity @@ -179,7 +180,13 @@ class RssFragment : VMBaseFragment(R.layout.fragment_rss), } override fun del(rssSource: RssSource) { - viewModel.del(rssSource) + alert(R.string.draw) { + setMessage(getString(R.string.sure_del) + "\n" + rssSource.sourceName) + noButton() + yesButton { + viewModel.del(rssSource) + } + } } override fun disable(rssSource: RssSource) {