Allow larger read cache

This commit is contained in:
tarsin committed 2023-03-18 21:30:47 +08:00
1 parent 6d8208d7f4
commit 47c9e07857
2 files changed
+3 -4

No files matched your search

@@ -258,7 +258,7 @@ class EhApplication : Application(), DefaultLifecycleObserver, ImageLoaderFactor
val imageCache by lazy {
DiskCache.Builder().apply {
directory(application.cacheDir.toOkioPath() / "image_cache")
maxSizeBytes(Settings.readCacheSize.coerceIn(40, 1280).toLong() * 1024 * 1024)
maxSizeBytes(Settings.readCacheSize.coerceIn(320, 5120).toLong() * 1024 * 1024)
}.build()
}
}
+2 -3
View File
@@ -148,12 +148,11 @@
</string-array>
<string-array name="read_cache_size_entry_values" translatable="false">
<item>40</item>
<item>80</item>
<item>160</item>
<item>320</item>
<item>640</item>
<item>1280</item>
<item>2560</item>
<item>5120</item>
</string-array>
<string-array name="filter_entries">