From 78b7a358587c472a5a85f5a3b52407d966ce732d Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Thu, 25 Jul 2019 12:16:42 +0200 Subject: [PATCH] show custom emojis in account field names (#1406) --- .../com/keylesspalace/tusky/adapter/AccountFieldAdapter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/AccountFieldAdapter.kt b/app/src/main/java/com/keylesspalace/tusky/adapter/AccountFieldAdapter.kt index c01d3d72..8e94c706 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/AccountFieldAdapter.kt +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/AccountFieldAdapter.kt @@ -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)