1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-23 22:04:54 +01:00

show custom emojis in account field names (#1406)

This commit is contained in:
Konrad Pozniak 2019-07-25 12:16:42 +02:00 committed by GitHub
parent b15b4fcf83
commit 7ae07111af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,10 @@ class AccountFieldAdapter(private val linkListener: LinkListener) : RecyclerView
override fun onBindViewHolder(viewHolder: ViewHolder, position: Int) {
val field = fields[position]
viewHolder.nameTextView.text = field.name
val emojifiedName = CustomEmojiHelper.emojifyString(field.name, emojis, viewHolder.nameTextView)
viewHolder.nameTextView.text = emojifiedName
val emojifiedValue = CustomEmojiHelper.emojifyText(field.value, emojis, viewHolder.valueTextView)
LinkHelper.setClickableText(viewHolder.valueTextView, emojifiedValue, null, linkListener)