mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Format file.
This commit is contained in:
+3
-1
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user