Adding naviagtion buttons for recents if ungrouped and theres no recents

This commit is contained in:
Jay 2020-04-11 01:04:44 -04:00
parent 34692cdc93
commit 2a8f4fd1c0

View File

@ -144,6 +144,11 @@ class RecentsPresenter(
} else {
val header = if (isEndless) endlessHeader else null
recentItems = pairs.map { RecentMangaItem(it.first, it.second, header) }
if (isEndless && recentItems.isEmpty()) {
recentItems = listOf(
RecentMangaItem(header = newChaptersHeader),
RecentMangaItem(header = continueReadingHeader))
}
}
setDownloadedChapters(recentItems)
withContext(Dispatchers.Main) { controller.showLists(recentItems) }