mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-05-03 15:26:27 +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
|
@AnyThread
|
||||||
fun getPictureFileName(): String {
|
fun getPictureFileName(): String {
|
||||||
val name = id.value?.replace(" ", "_") ?: "${firstName.value.orEmpty().trim()}_${lastName.value.orEmpty().trim()}"
|
val name = id.value ?: "${firstName.value.orEmpty().trim()}_${lastName.value.orEmpty().trim()}"
|
||||||
return "$name.jpg"
|
val flattenedName = name.replace(" ", "_").replace(":", "")
|
||||||
|
return "$flattenedName.jpg"
|
||||||
}
|
}
|
||||||
|
|
||||||
@UiThread
|
@UiThread
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue