mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore(coil): Remove explicit memoryCache config
This commit is contained in:
parent
b645a208cd
commit
df66327996
1 changed files with 1 additions and 2 deletions
|
@ -26,7 +26,6 @@ import co.touchlab.kermit.Logger
|
|||
import coil3.ImageLoader
|
||||
import coil3.PlatformContext
|
||||
import coil3.SingletonImageLoader
|
||||
import coil3.memory.MemoryCache
|
||||
import coil3.network.okhttp.OkHttpNetworkFetcherFactory
|
||||
import coil3.request.allowHardware
|
||||
import coil3.request.allowRgb565
|
||||
|
@ -252,7 +251,7 @@ open class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.F
|
|||
}
|
||||
|
||||
diskCache(diskCacheLazy::value)
|
||||
memoryCache { MemoryCache.Builder().maxSizePercent(this@App, 0.40).build() }
|
||||
// memoryCache { MemoryCache.Builder().maxSizePercent(this@App, 0.40).build() }
|
||||
crossfade(true)
|
||||
allowRgb565(this@App.getSystemService<ActivityManager>()!!.isLowRamDevice)
|
||||
allowHardware(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue