mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-29 06:36:25 +00:00
Display photo URI from vcard when available
This commit is contained in:
parent
1ee6f6b2ef
commit
c2d57c504f
1 changed files with 3 additions and 1 deletions
|
|
@ -408,7 +408,9 @@ private suspend fun loadContactPictureWithCoil(
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
val displayName = contact.contact.value?.name ?: contact.displayName.value.orEmpty()
|
val displayName = contact.contact.value?.name ?: contact.displayName.value.orEmpty()
|
||||||
val source = contact.contact.value?.getPictureUri(useThumbnail)
|
val source = contact.contact.value?.photo ?: contact.contact.value?.getPictureUri(
|
||||||
|
useThumbnail
|
||||||
|
)
|
||||||
val sourceStr = source.toString()
|
val sourceStr = source.toString()
|
||||||
val base64 = if (ImageUtils.isBase64(sourceStr)) {
|
val base64 = if (ImageUtils.isBase64(sourceStr)) {
|
||||||
Log.d("[Coil] Picture URI is base64 encoded")
|
Log.d("[Coil] Picture URI is base64 encoded")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue