This commit is contained in:
len 2016-11-24 15:40:34 +01:00
parent 2a531f1a1e
commit f9c5379400

View File

@ -99,6 +99,7 @@ class DownloadManager(context: Context) {
val pages = mutableListOf<Page>()
chapterDir?.listFiles()
?.filter { it.type?.startsWith("image") ?: false }
?.sortedBy { it.name }
?.forEach { file ->
val page = Page(pages.size, uri = file.uri)
pages.add(page)