Commit 7a0ca8ab by zhangchengbo

fix:去除名称显示中间的空格

parent 7da48338
...@@ -145,7 +145,7 @@ class SimpleContactsHelper(val context: Context) { ...@@ -145,7 +145,7 @@ class SimpleContactsHelper(val context: Context) {
arrayOf(prefix, firstName, middleName, familyName, suffix).filter { it.isNotEmpty() } arrayOf(prefix, firstName, middleName, familyName, suffix).filter { it.isNotEmpty() }
} }
val fullName = TextUtils.join(" ", names) val fullName = TextUtils.join("", names)
val contact = SimpleContact(rawId, contactId, fullName, photoUri, ArrayList(), ArrayList(), ArrayList()) val contact = SimpleContact(rawId, contactId, fullName, photoUri, ArrayList(), ArrayList(), ArrayList())
contacts.add(contact) contacts.add(contact)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment