Follow chapter sort setting for start/resume FAB (closes #1716)
Cette révision appartient à :
Parent
ef5148ebb4
révision
f7cc36f2f0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
|
@ -474,7 +474,7 @@ 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 chapters.sortedWith(getChapterSort()).findLast { !it.read }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Référencer dans un nouveau ticket