Merge pull request #2647 from Bnyro/master

Use the cache for saving temp images
This commit is contained in:
Bnyro 2023-01-09 15:49:30 +01:00 committed by GitHub
commit e82b7f77f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ object ImageHelper {
} }
else -> diskCache( else -> diskCache(
DiskCache.Builder() DiskCache.Builder()
.directory(context.filesDir.resolve("coil")) .directory(context.cacheDir.resolve("coil"))
.maxSizeBytes(maxImageCacheSize.toInt() * 1024 * 1024L) .maxSizeBytes(maxImageCacheSize.toInt() * 1024 * 1024L)
.build() .build()
) )