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