moving the contact avatar creation into Commons
This commit is contained in:
parent
1251d09900
commit
3a515486ea
5 changed files with 4 additions and 59 deletions
|
|
@ -1,7 +0,0 @@
|
|||
package com.simplemobiletools.smsmessenger.extensions
|
||||
|
||||
import com.simplemobiletools.commons.extensions.normalizeString
|
||||
import java.util.*
|
||||
|
||||
// get the contact names first letter at showing the placeholder without image
|
||||
fun String.getNameLetter() = normalizeString().toCharArray().getOrNull(0)?.toString()?.toUpperCase(Locale.getDefault()) ?: "S"
|
||||
Loading…
Add table
Add a link
Reference in a new issue