mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 00:11:50 +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 {
|
} else {
|
||||||
val header = if (isEndless) endlessHeader else null
|
val header = if (isEndless) endlessHeader else null
|
||||||
recentItems = pairs.map { RecentMangaItem(it.first, it.second, header) }
|
recentItems = pairs.map { RecentMangaItem(it.first, it.second, header) }
|
||||||
|
if (isEndless && recentItems.isEmpty()) {
|
||||||
|
recentItems = listOf(
|
||||||
|
RecentMangaItem(header = newChaptersHeader),
|
||||||
|
RecentMangaItem(header = continueReadingHeader))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setDownloadedChapters(recentItems)
|
setDownloadedChapters(recentItems)
|
||||||
withContext(Dispatchers.Main) { controller.showLists(recentItems) }
|
withContext(Dispatchers.Main) { controller.showLists(recentItems) }
|
||||||
|
Loading…
Reference in New Issue
Block a user