Format file.

This commit is contained in:
Benoit Marty 2025-03-03 16:28:56 +01:00
parent e82ca3ffe5
commit 209600270a

View file

@ -342,7 +342,9 @@ fun Modifier.avatarBloom(
withContext(Dispatchers.IO) { withContext(Dispatchers.IO) {
val bitmap = SingletonImageLoader.get(context) val bitmap = SingletonImageLoader.get(context)
.execute(painterRequest) .execute(painterRequest)
.image?.toBitmap() ?: return@withContext .image
?.toBitmap()
?: return@withContext
blurHash = BlurHash.encode( blurHash = BlurHash.encode(
bitmap = bitmap, bitmap = bitmap,
componentX = BloomDefaults.HASH_COMPONENTS, componentX = BloomDefaults.HASH_COMPONENTS,