优化代码

pull/754/head
gedoor 4 years ago
parent f5c42ae158
commit 4fee2df791
  1. 9
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt

@ -66,7 +66,16 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application),
}
}
} else {
val ruleContent = rssSource?.ruleContent
if (ruleContent.isNullOrBlank()) {
loadUrl(origin, origin)
} else {
val rssArticle = RssArticle()
rssArticle.origin = origin
rssArticle.link = origin
rssArticle.title = rssSource!!.sourceName
loadContent(rssArticle, ruleContent)
}
}
}
}.onFinally {

Loading…
Cancel
Save