Glimpse: Increase memory cache size
It's now 5% bigger Change-Id: Ic1b1d87f0e2adff64fc354ff6207e96243657c5a
This commit is contained in:
parent
a528b7302b
commit
dd81817e66
|
@ -12,6 +12,7 @@ import coil.ImageLoaderFactory
|
||||||
import coil.decode.GifDecoder
|
import coil.decode.GifDecoder
|
||||||
import coil.decode.ImageDecoderDecoder
|
import coil.decode.ImageDecoderDecoder
|
||||||
import coil.decode.VideoFrameDecoder
|
import coil.decode.VideoFrameDecoder
|
||||||
|
import coil.memory.MemoryCache
|
||||||
import com.google.android.material.color.DynamicColors
|
import com.google.android.material.color.DynamicColors
|
||||||
import org.lineageos.glimpse.repository.MediaRepository
|
import org.lineageos.glimpse.repository.MediaRepository
|
||||||
|
|
||||||
|
@ -31,5 +32,7 @@ class GlimpseApplication : Application(), ImageLoaderFactory {
|
||||||
}
|
}
|
||||||
add(GifDecoder.Factory())
|
add(GifDecoder.Factory())
|
||||||
add(VideoFrameDecoder.Factory())
|
add(VideoFrameDecoder.Factory())
|
||||||
|
}.memoryCache {
|
||||||
|
MemoryCache.Builder(this).maxSizePercent(0.25).build()
|
||||||
}.build()
|
}.build()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue