Browse Source
fix unread threads typeface, close #463
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
2 additions and
2 deletions
-
app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java
|
@ -356,7 +356,7 @@ public final class DirectInboxItemViewHolder extends RecyclerView.ViewHolder { |
|
|
final Map<Long, DirectThreadLastSeenAt> lastSeenAtMap = thread.getLastSeenAt(); |
|
|
final Map<Long, DirectThreadLastSeenAt> lastSeenAtMap = thread.getLastSeenAt(); |
|
|
final boolean read = ResponseBodyUtils.isRead(item, lastSeenAtMap, Collections.singletonList(thread.getViewerId()), thread.getDirectStory()); |
|
|
final boolean read = ResponseBodyUtils.isRead(item, lastSeenAtMap, Collections.singletonList(thread.getViewerId()), thread.getDirectStory()); |
|
|
binding.unread.setVisibility(read ? View.GONE : View.VISIBLE); |
|
|
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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |