Format file.
This commit is contained in:
parent
e82ca3ffe5
commit
209600270a
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue