mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #2647 from Bnyro/master
Use the cache for saving temp images
This commit is contained in:
commit
e82b7f77f6
@ -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…
Reference in New Issue
Block a user