尝试修正订阅里因为某些资源地址发生变动导致无法载入的BUG

pull/1184/head
NineWorlds 3 years ago
parent 96deeb7190
commit 0229920c9e
  1. 3
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt

@ -47,7 +47,8 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application),
rssSource = appDb.rssSourceDao.getByKey(origin) rssSource = appDb.rssSourceDao.getByKey(origin)
if (link != null) { if (link != null) {
rssStar = appDb.rssStarDao.get(origin, link) rssStar = appDb.rssStarDao.get(origin, link)
rssArticle = rssStar?.toRssArticle() ?: appDb.rssArticleDao.get(origin, link) rssArticle = appDb.rssArticleDao.get(origin, link)
//rssArticle = rssStar?.toRssArticle() ?: appDb.rssArticleDao.get(origin, link)
rssArticle?.let { rssArticle -> rssArticle?.let { rssArticle ->
if (!rssArticle.description.isNullOrBlank()) { if (!rssArticle.description.isNullOrBlank()) {
contentLiveData.postValue(rssArticle.description!!) contentLiveData.postValue(rssArticle.description!!)

Loading…
Cancel
Save