From 14c3df535df05c54694c5c520ced6c01ee3e610c Mon Sep 17 00:00:00 2001 From: kosyak Date: Sun, 21 Jul 2024 12:29:15 +0200 Subject: [PATCH] medium font for unread conversation title --- .../siacs/conversations/ui/adapter/ConversationAdapter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java index db35951e9..2f93401c5 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java @@ -368,8 +368,12 @@ public class ConversationAdapter viewHolder.binding.unreadCount.setVisibility(View.GONE); } + if (viewHolder.binding.conversationName.getTag() == null) { + viewHolder.binding.conversationName.setTag(viewHolder.binding.conversationName.getTypeface()); + } + if (isRead) { - viewHolder.binding.conversationName.setTypeface(null, Typeface.NORMAL); + viewHolder.binding.conversationName.setTypeface((Typeface) viewHolder.binding.conversationName.getTag(), Typeface.NORMAL); } else { viewHolder.binding.conversationName.setTypeface(null, Typeface.BOLD); }