mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
Adding naviagtion buttons for recents if ungrouped and theres no recents
This commit is contained in:
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…
Reference in New Issue
Block a user