|
@@ -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)
|