mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fixed history showing the wrong chapter when multiple entries have the same manga on the first paginated result
An extra fix to 80732700fc
This commit is contained in:
parent
3729c67244
commit
7ed2ad4aad
1 changed files with 4 additions and 3 deletions
|
@ -271,10 +271,11 @@ class RecentsPresenter(
|
||||||
(it.chapter.read && !viewType.isUpdates) || it.chapter.id == null -> {
|
(it.chapter.read && !viewType.isUpdates) || it.chapter.id == null -> {
|
||||||
val unreadChapterIsAlreadyInList by lazy {
|
val unreadChapterIsAlreadyInList by lazy {
|
||||||
val fIndex = mangaList.indexOfFirst { item -> item.manga.id == it.manga.id }
|
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)
|
updatePageCount && recentItems.any { item -> item.mch.manga.id == it.manga.id }
|
||||||
|
) || fIndex < mangaList.indexOf(it)
|
||||||
}
|
}
|
||||||
if (viewType.isHistory && updatePageCount && unreadChapterIsAlreadyInList) {
|
if (viewType.isHistory && unreadChapterIsAlreadyInList) {
|
||||||
it.chapter
|
it.chapter
|
||||||
} else {
|
} else {
|
||||||
val nextChapter = getNextChapter(it.manga)
|
val nextChapter = getNextChapter(it.manga)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue