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
b0283043ee
commit
ab6911dd11
1 changed files with 3 additions and 2 deletions
|
|
@ -135,8 +135,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