mirror of
https://github.com/null2264/yokai.git
synced 2025-07-17 06:16:54 +00:00
Fix history not showing the next unread chapter after returning to the controller
This commit is contained in:
parent
982cbc42fd
commit
80732700fc
1 changed files with 5 additions and 5 deletions
|
@ -275,12 +275,12 @@ class RecentsPresenter(
|
|||
(it.chapter.read && viewType != VIEW_TYPE_ONLY_UPDATES) || it.chapter.id == null -> {
|
||||
val unreadChapterIsAlreadyInList by lazy {
|
||||
val fIndex = mangaList.indexOfFirst { item -> item.manga.id == it.manga.id }
|
||||
(
|
||||
recentItems.any { item -> item.mch.manga.id == it.manga.id } ||
|
||||
fIndex < mangaList.indexOf(it)
|
||||
)
|
||||
recentItems.any { item -> item.mch.manga.id == it.manga.id } ||
|
||||
fIndex < mangaList.indexOf(it)
|
||||
}
|
||||
if (viewType == VIEW_TYPE_ONLY_HISTORY && unreadChapterIsAlreadyInList) {
|
||||
if (viewType == VIEW_TYPE_ONLY_HISTORY && updatePageCount &&
|
||||
unreadChapterIsAlreadyInList
|
||||
) {
|
||||
it.chapter
|
||||
} else {
|
||||
val nextChapter = getNextChapter(it.manga)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue