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
|
|
@ -463,7 +463,7 @@ fun Context.showReceivedMessageNotification(address: String, body: String, threa
|
|||
val summaryText = getString(R.string.new_message)
|
||||
val sender = getNameAndPhotoFromPhoneNumber(address)?.name ?: ""
|
||||
|
||||
val largeIcon = bitmap ?: getNotificationLetterIcon(sender.toCharArray().getOrNull(0)?.toString() ?: "S")
|
||||
val largeIcon = bitmap ?: getNotificationLetterIcon(sender.getNameLetter())
|
||||
val builder = NotificationCompat.Builder(this, channelId)
|
||||
.setContentTitle(sender)
|
||||
.setContentText(body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue