diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-29 14:05:57 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-29 14:05:57 +0200 |
commit | 3243673160ead43f1b7dff195ef8bb98bd22b15a (patch) | |
tree | bf71f253fb8af8a4576a5c930d2662a97384140d /src/main/java/de/pixart/messenger | |
parent | 8cf430a7ba6c6c45b3b5a18ece512b62bd276619 (diff) |
fix some colors
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java index 4cdce8aca..7a1809a98 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -859,7 +859,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie } } - boolean darkBackground = type == RECEIVED && !isInValidSession || activity.isDarkTheme(); + boolean darkBackground = activity.isDarkTheme(); if (type == DATE_SEPARATOR) { if (UIHelper.today(message.getTimeSent())) { @@ -987,6 +987,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie if (isInValidSession) { viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received_light); viewHolder.encryption.setVisibility(View.GONE); + viewHolder.encryption.setTextColor(this.getMessageTextColor(darkBackground, false)); } else { viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received_warning); viewHolder.encryption.setVisibility(View.VISIBLE); |