mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +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 {
|
||||
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 base64 = if (ImageUtils.isBase64(sourceStr)) {
|
||||
Log.d("[Coil] Picture URI is base64 encoded")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue