mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed adding/editing CardDAV synchronized contact picture
This commit is contained in:
parent
a93f2f2d48
commit
7c8a8dc091
1 changed files with 3 additions and 2 deletions
|
|
@ -129,8 +129,9 @@ class ContactNewOrEditViewModel
|
|||
|
||||
@AnyThread
|
||||
fun getPictureFileName(): String {
|
||||
val name = id.value?.replace(" ", "_") ?: "${firstName.value.orEmpty().trim()}_${lastName.value.orEmpty().trim()}"
|
||||
return "$name.jpg"
|
||||
val name = id.value ?: "${firstName.value.orEmpty().trim()}_${lastName.value.orEmpty().trim()}"
|
||||
val flattenedName = name.replace(" ", "_").replace(":", "")
|
||||
return "$flattenedName.jpg"
|
||||
}
|
||||
|
||||
@UiThread
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue