Adding naviagtion buttons for recents if ungrouped and theres no recents

pull/3117/head
Jay 5 years ago
parent 34692cdc93
commit 2a8f4fd1c0

@ -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) }

Loading…
Cancel
Save