diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-09 21:12:29 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-09 21:13:01 +0200 |
commit | 3ac56bcbdb27be63275c00a60eef32cdd985c827 (patch) | |
tree | 2d848c7e376bae0a31bb61fdbc408523be448404 /src/main/java/de/pixart/messenger | |
parent | 056382107891892c98d9236871b4f3e95db884e4 (diff) |
use tertiary background color for landscape conversation overview
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-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(); |