Browse Source

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

arkon 4 years ago
parent
commit
f7cc36f2f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt

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