Do proper cache organization

This commit is contained in:
vfsfitvnm
2022-09-09 12:46:37 +02:00
parent 996dbb4de1
commit 784c941938
3 changed files with 20 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ class MainApplication : Application(), ImageLoaderFactory {
.crossfade(true)
.diskCache(
DiskCache.Builder()
.directory(filesDir.resolve("coil"))
.directory(cacheDir.resolve("coil"))
.maxSizeBytes(
preferences.getEnum(
coilDiskCacheMaxSizeKey,