medium font for unread conversation title

This commit is contained in:
kosyak 2024-07-21 12:29:15 +02:00
parent 21658d20d0
commit 14c3df535d

View file

@ -368,8 +368,12 @@ public class ConversationAdapter
viewHolder.binding.unreadCount.setVisibility(View.GONE); viewHolder.binding.unreadCount.setVisibility(View.GONE);
} }
if (viewHolder.binding.conversationName.getTag() == null) {
viewHolder.binding.conversationName.setTag(viewHolder.binding.conversationName.getTypeface());
}
if (isRead) { if (isRead) {
viewHolder.binding.conversationName.setTypeface(null, Typeface.NORMAL); viewHolder.binding.conversationName.setTypeface((Typeface) viewHolder.binding.conversationName.getTag(), Typeface.NORMAL);
} else { } else {
viewHolder.binding.conversationName.setTypeface(null, Typeface.BOLD); viewHolder.binding.conversationName.setTypeface(null, Typeface.BOLD);
} }