Skip to content

Commit

Permalink
Adding naviagtion buttons for recents if ungrouped and theres no recents
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings authored and nonproto committed Apr 11, 2020
1 parent 57f6ee2 commit 4121504
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 4121504

Please sign in to comment.