mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
warning fix in LocalSource
This commit is contained in:
parent
6f8ebb1d0d
commit
63d5e6e710
1 changed files with 4 additions and 6 deletions
|
@ -240,12 +240,10 @@ class LocalSource(private val context: Context) : CatalogueSource {
|
|||
ChapterRecognition.parseChapterNumber(this, manga)
|
||||
}
|
||||
}
|
||||
.sortedWith(
|
||||
Comparator { c1, c2 ->
|
||||
val c = c2.chapter_number.compareTo(c1.chapter_number)
|
||||
if (c == 0) c2.name.compareToCaseInsensitiveNaturalOrder(c1.name) else c
|
||||
}
|
||||
)
|
||||
.sortedWith { c1, c2 ->
|
||||
val c = c2.chapter_number.compareTo(c1.chapter_number)
|
||||
if (c == 0) c2.name.compareToCaseInsensitiveNaturalOrder(c1.name) else c
|
||||
}
|
||||
.toList()
|
||||
|
||||
return Observable.just(chapters)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue