mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Use the cache for saving temp images
This commit is contained in:
parent
8cbb189bcf
commit
98a1c07d02
@ -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()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user