avoid showing accent characters at contact image placeholders
This commit is contained in:
parent
718afea9d6
commit
0eb161e05a
2 changed files with 7 additions and 1 deletions
|
|
@ -0,0 +1,6 @@
|
|||
package com.simplemobiletools.smsmessenger.extensions
|
||||
|
||||
import com.simplemobiletools.commons.extensions.normalizeString
|
||||
|
||||
// get the contact names first letter at showing the placeholder without image
|
||||
fun String.getNameLetter() = normalizeString().toCharArray().getOrNull(0)?.toString() ?: "S"
|
||||
Loading…
Add table
Add a link
Reference in a new issue