|
|
@ -25,6 +25,7 @@ import io.legado.app.ui.rss.source.manage.RssSourceActivity |
|
|
|
import io.legado.app.ui.rss.source.manage.RssSourceViewModel |
|
|
|
import io.legado.app.ui.rss.source.manage.RssSourceViewModel |
|
|
|
import io.legado.app.ui.rss.subscription.RuleSubActivity |
|
|
|
import io.legado.app.ui.rss.subscription.RuleSubActivity |
|
|
|
import io.legado.app.utils.cnCompare |
|
|
|
import io.legado.app.utils.cnCompare |
|
|
|
|
|
|
|
import io.legado.app.utils.openUrl |
|
|
|
import io.legado.app.utils.splitNotBlank |
|
|
|
import io.legado.app.utils.splitNotBlank |
|
|
|
import io.legado.app.utils.startActivity |
|
|
|
import io.legado.app.utils.startActivity |
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding |
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding |
|
|
@ -143,9 +144,13 @@ class RssFragment : VMBaseFragment<RssSourceViewModel>(R.layout.fragment_rss), |
|
|
|
|
|
|
|
|
|
|
|
override fun openRss(rssSource: RssSource) { |
|
|
|
override fun openRss(rssSource: RssSource) { |
|
|
|
if (rssSource.singleUrl) { |
|
|
|
if (rssSource.singleUrl) { |
|
|
|
startActivity<ReadRssActivity> { |
|
|
|
if (rssSource.sourceUrl.startsWith("http", true)) { |
|
|
|
putExtra("title", rssSource.sourceName) |
|
|
|
startActivity<ReadRssActivity> { |
|
|
|
putExtra("origin", rssSource.sourceUrl) |
|
|
|
putExtra("title", rssSource.sourceName) |
|
|
|
|
|
|
|
putExtra("origin", rssSource.sourceUrl) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
context?.openUrl(rssSource.sourceUrl) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
startActivity<RssSortActivity> { |
|
|
|
startActivity<RssSortActivity> { |
|
|
|