Use the cache for saving temp images

This commit is contained in:
Bnyro 2023-01-09 15:49:09 +01:00
parent 8cbb189bcf
commit 98a1c07d02

View File

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