mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 17:20:49 +01:00
Merge pull request #2596 from FlaminSarge/migrate
Move empty-chapterlist manga to end of Latest Chapter sort in Library view
This commit is contained in:
commit
74cc77400c
2 changed files with 6 additions and 4 deletions
|
@ -207,8 +207,10 @@ class LibraryPresenter(
|
||||||
manga1TotalChapter.compareTo(mange2TotalChapter)
|
manga1TotalChapter.compareTo(mange2TotalChapter)
|
||||||
}
|
}
|
||||||
LibrarySort.LATEST_CHAPTER -> {
|
LibrarySort.LATEST_CHAPTER -> {
|
||||||
val manga1latestChapter = latestChapterManga[i1.manga.id!!] ?: 0
|
val manga1latestChapter = latestChapterManga[i1.manga.id!!]
|
||||||
val manga2latestChapter = latestChapterManga[i2.manga.id!!] ?: 0
|
?: latestChapterManga.size
|
||||||
|
val manga2latestChapter = latestChapterManga[i2.manga.id!!]
|
||||||
|
?: latestChapterManga.size
|
||||||
manga1latestChapter.compareTo(manga2latestChapter)
|
manga1latestChapter.compareTo(manga2latestChapter)
|
||||||
}
|
}
|
||||||
else -> throw Exception("Unknown sorting mode")
|
else -> throw Exception("Unknown sorting mode")
|
||||||
|
|
Loading…
Reference in a new issue