mirror of
https://github.com/null2264/yokai.git
synced 2025-07-17 22:36:55 +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 -> {
|
(it.chapter.read && viewType != VIEW_TYPE_ONLY_UPDATES) || 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 } ||
|
recentItems.any { item -> item.mch.manga.id == it.manga.id } ||
|
||||||
fIndex < mangaList.indexOf(it)
|
fIndex < mangaList.indexOf(it)
|
||||||
)
|
|
||||||
}
|
}
|
||||||
if (viewType == VIEW_TYPE_ONLY_HISTORY && unreadChapterIsAlreadyInList) {
|
if (viewType == VIEW_TYPE_ONLY_HISTORY && updatePageCount &&
|
||||||
|
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