aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-07-09 21:12:29 +0200
committerChristian Schneppe <christian@pix-art.de>2018-07-09 21:13:01 +0200
commit3ac56bcbdb27be63275c00a60eef32cdd985c827 (patch)
tree2d848c7e376bae0a31bb61fdbc408523be448404 /src/main/java/de/pixart/messenger/ui
parent056382107891892c98d9236871b4f3e95db884e4 (diff)
use tertiary background color for landscape conversation overview
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java6
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();