Make the resume/start button go to the latest version for EH manga
This commit is contained in:
parent
78d1a6cecb
commit
4513af8425
@ -623,7 +623,11 @@ class MangaPresenter(
|
||||
* Returns the next unread chapter or null if everything is read.
|
||||
*/
|
||||
fun getNextUnreadChapter(): ChapterItem? {
|
||||
return chapters.sortedByDescending { it.source_order }.find { !it.read }
|
||||
return if (source.isEhBasedSource()) {
|
||||
chapters.sortedBy { it.source_order }[0]
|
||||
} else {
|
||||
chapters.sortedByDescending { it.source_order }.find { !it.read }
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user