mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
fix(LocalBook): remove duplicated chapter
This commit is contained in:
@@ -76,7 +76,8 @@ object LocalBook {
|
||||
if (chapters.isEmpty()) {
|
||||
throw TocEmptyException(appCtx.getString(R.string.chapter_list_empty))
|
||||
}
|
||||
return chapters
|
||||
val lh = LinkedHashSet(chapters)
|
||||
return ArrayList(lh)
|
||||
}
|
||||
|
||||
fun getContent(book: Book, chapter: BookChapter): String? {
|
||||
|
||||
Reference in New Issue
Block a user