Merge pull request #2596 from FlaminSarge/migrate
Move empty-chapterlist manga to end of Latest Chapter sort in Library view
Cette révision appartient à :
révision
74cc77400c
2 fichiers modifiés avec 6 ajouts et 4 suppressions
|
@ -207,8 +207,10 @@ class LibraryPresenter(
|
|||
manga1TotalChapter.compareTo(mange2TotalChapter)
|
||||
}
|
||||
LibrarySort.LATEST_CHAPTER -> {
|
||||
val manga1latestChapter = latestChapterManga[i1.manga.id!!] ?: 0
|
||||
val manga2latestChapter = latestChapterManga[i2.manga.id!!] ?: 0
|
||||
val manga1latestChapter = latestChapterManga[i1.manga.id!!]
|
||||
?: latestChapterManga.size
|
||||
val manga2latestChapter = latestChapterManga[i2.manga.id!!]
|
||||
?: latestChapterManga.size
|
||||
manga1latestChapter.compareTo(manga2latestChapter)
|
||||
}
|
||||
else -> throw Exception("Unknown sorting mode")
|
||||
|
|
Référencer dans un nouveau ticket