diff options
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java index 11c129522..5294ba7cd 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java @@ -96,7 +96,11 @@ public class ConversationAdapter extends RecyclerView.Adapter<ConversationAdapte viewHolder.name.setText(EmojiWrapper.transform(name)); } - viewHolder.frame.setBackgroundColor(Color.get(activity, conversation == ConversationFragment.getConversation(activity) ? R.attr.color_background_secondary : R.attr.color_background_primary)); + if (conversation == ConversationFragment.getConversation(activity)) { + viewHolder.frame.setBackgroundColor(Color.get(activity, R.attr.color_background_tertiary)); + } else { + viewHolder.frame.setBackgroundColor(Color.get(activity,R.attr.color_background_primary)); + } Message message = conversation.getLatestMessage(); final int failedCount = conversation.failedCount(); |