pull/2431/head
kunfei 2 years ago
parent 9fe35a42f7
commit 7ff2132bb9
  1. 7
      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,8 +180,14 @@ class RssFragment : VMBaseFragment<RssSourceViewModel>(R.layout.fragment_rss),
}
override fun del(rssSource: RssSource) {
alert(R.string.draw) {
setMessage(getString(R.string.sure_del) + "\n" + rssSource.sourceName)
noButton()
yesButton {
viewModel.del(rssSource)
}
}
}
override fun disable(rssSource: RssSource) {
viewModel.disable(rssSource)

Loading…
Cancel
Save