|
|
@ -57,7 +57,7 @@ class RssArticlesViewModel(application: Application) : BaseViewModel(application |
|
|
|
isLoading = true |
|
|
|
isLoading = true |
|
|
|
val pageUrl = nextPageUrl |
|
|
|
val pageUrl = nextPageUrl |
|
|
|
if (!pageUrl.isNullOrEmpty()) { |
|
|
|
if (!pageUrl.isNullOrEmpty()) { |
|
|
|
Rss.getArticles(sortName, sortUrl, rssSource, pageUrl) |
|
|
|
Rss.getArticles(sortName, pageUrl, rssSource, pageUrl) |
|
|
|
.onSuccess(Dispatchers.IO) { |
|
|
|
.onSuccess(Dispatchers.IO) { |
|
|
|
nextPageUrl = it.nextPageUrl |
|
|
|
nextPageUrl = it.nextPageUrl |
|
|
|
it.articles.let { list -> |
|
|
|
it.articles.let { list -> |
|
|
|