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) {