idk wtf i'm doin'

This commit is contained in:
tom5079
2020-06-21 22:43:47 +09:00
parent 0bf2f1b6e1
commit 9f363d8900
8 changed files with 129 additions and 59 deletions

View File

@@ -319,7 +319,7 @@ fun importOldGalleries(context: Context, folder: File) = CoroutineScope(Dispatch
@Suppress("NAME_SHADOWING")
val index = it.nameWithoutExtension.toIntOrNull() ?: return@forEach
Cache(context).putImage(galleryID, index, it.extension, it.readBytes())
Cache(context).putImage(galleryID, index, it.extension, it.inputStream())
}
}