From a70f57358ed4f367787e39fa2ff3b235896f0107 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 10 Jun 2016 22:39:02 +0200 Subject: use darker green as background for chat bubbles in dark theme --- .../java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 1ea2c223..e174401d 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -678,12 +678,13 @@ public class MessageAdapter extends ArrayAdapter { if (type == RECEIVED) { if(isInValidSession) { + int bubble; if (!mUseGreenBackground) { - int bubble = activity.getThemeResource(R.attr.message_bubble_received_monochrome, R.drawable.message_bubble_received_white); - viewHolder.message_box.setBackgroundResource(bubble); + bubble = activity.getThemeResource(R.attr.message_bubble_received_monochrome, R.drawable.message_bubble_received_white); } else { - viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received); + bubble = activity.getThemeResource(R.attr.message_bubble_received_green, R.drawable.message_bubble_received); } + viewHolder.message_box.setBackgroundResource(bubble); viewHolder.encryption.setVisibility(View.GONE); } else { viewHolder.message_box.setBackgroundResource(R.drawable.message_bubble_received_warning); -- cgit v1.2.3