Parcourir la source

Ignore chapters with duplicated name. Fixes #483

len il y a 8 ans
Parent
commit
7b28614c37

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersFragment.kt

@@ -264,6 +264,7 @@ class ChaptersFragment : BaseRxFragment<ChaptersPresenter>(), ActionMode.Callbac
 
                     fun getUnreadChaptersSorted() = presenter.chapters
                             .filter { !it.read && !it.isDownloaded }
+                            .distinctBy { it.name }
                             .sortedByDescending { it.source_order }
 
                     // i = 0: Download 1