1
0
Fork 0
mirror of https://github.com/mihonapp/mihon.git synced 2025-03-08 15:35:42 +03:00

Follow chapter sort setting for start/resume FAB (closes )

This commit is contained in:
arkon 2021-04-17 11:38:08 -04:00
parent ef5148ebb4
commit f7cc36f2f0

View file

@ -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 }
}
/**