Fix loading feed when a channel tab is empty

This commit is contained in:
Stypox 2023-04-25 19:01:02 +02:00
parent 6b3a178f2a
commit 1519527356
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -165,7 +165,9 @@ class FeedLoadManager(private val context: Context) {
} }
.flatMap { (channelTabInfo, linkHandler) -> .flatMap { (channelTabInfo, linkHandler) ->
errors.addAll(channelTabInfo.errors) errors.addAll(channelTabInfo.errors)
if (channelTabInfo.relatedItems.isEmpty()) { if (channelTabInfo.relatedItems.isEmpty() &&
channelTabInfo.nextPage != null
) {
val infoItemsPage = getMoreChannelTabItems( val infoItemsPage = getMoreChannelTabItems(
subscriptionEntity.serviceId, subscriptionEntity.serviceId,
linkHandler, channelTabInfo.nextPage linkHandler, channelTabInfo.nextPage