From be250a9cee7d400c4a0e4ac74308bf79cb5e6d8b Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Fri, 5 Mar 2021 14:18:51 -0500 Subject: [PATCH] fix unread threads typeface, close #463 --- .../viewholder/directmessages/DirectInboxItemViewHolder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java b/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java index 85373901..dfecaa0c 100644 --- a/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java +++ b/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java @@ -356,7 +356,7 @@ public final class DirectInboxItemViewHolder extends RecyclerView.ViewHolder { final Map lastSeenAtMap = thread.getLastSeenAt(); final boolean read = ResponseBodyUtils.isRead(item, lastSeenAtMap, Collections.singletonList(thread.getViewerId()), thread.getDirectStory()); binding.unread.setVisibility(read ? View.GONE : View.VISIBLE); - binding.threadTitle.setTypeface(binding.threadTitle.getTypeface(), read ? Typeface.NORMAL : Typeface.BOLD); - binding.subtitle.setTypeface(binding.subtitle.getTypeface(), read ? Typeface.NORMAL : Typeface.BOLD); + binding.threadTitle.setTypeface(null, read ? Typeface.NORMAL : Typeface.BOLD); + binding.subtitle.setTypeface(null, read ? Typeface.NORMAL : Typeface.BOLD); } } \ No newline at end of file