medium font for unread conversation title
This commit is contained in:
parent
21658d20d0
commit
14c3df535d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue