enables crossfading between images

This commit is contained in:
Vitor Pamplona 2024-07-23 08:47:20 -04:00
parent dbaadb4595
commit bca941e045

View File

@ -114,7 +114,12 @@ class Amethyst : Application() {
}
}
fun imageLoaderBuilder(): ImageLoader.Builder = ImageLoader.Builder(this).diskCache { coilCache }.memoryCache { coilMemCache }
fun imageLoaderBuilder(): ImageLoader.Builder =
ImageLoader
.Builder(this)
.diskCache { coilCache }
.memoryCache { coilMemCache }
.crossfade(true)
fun encryptedStorage(npub: String? = null): EncryptedSharedPreferences = EncryptedStorage.preferences(instance, npub)