mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 02:18:24 +01:00
Fix #546
This commit is contained in:
parent
2a531f1a1e
commit
f9c5379400
@ -99,6 +99,7 @@ class DownloadManager(context: Context) {
|
|||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
chapterDir?.listFiles()
|
chapterDir?.listFiles()
|
||||||
?.filter { it.type?.startsWith("image") ?: false }
|
?.filter { it.type?.startsWith("image") ?: false }
|
||||||
|
?.sortedBy { it.name }
|
||||||
?.forEach { file ->
|
?.forEach { file ->
|
||||||
val page = Page(pages.size, uri = file.uri)
|
val page = Page(pages.size, uri = file.uri)
|
||||||
pages.add(page)
|
pages.add(page)
|
||||||
|
Loading…
Reference in New Issue
Block a user