diff --git a/res/layout/quote_view.xml b/res/layout/quote_view.xml
index 32e9c7228..8ab550cc9 100644
--- a/res/layout/quote_view.xml
+++ b/res/layout/quote_view.xml
@@ -20,8 +20,8 @@
android:id="@+id/quote_bar"
android:layout_width="@dimen/quote_corner_radius_bottom"
android:layout_height="match_parent"
- android:background="@color/purple_400"
- tools:tint="@color/purple_400" />
+ android:background="@color/unknown_sender"
+ tools:tint="@color/unknown_sender" />
-
\ No newline at end of file
+
diff --git a/res/values/colors.xml b/res/values/colors.xml
index a9c58bf0d..e6ee4d5c3 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -64,4 +64,8 @@
#eeeeee
#222222
+
+ #ff999999
+
diff --git a/src/org/thoughtcrime/securesms/ConversationItem.java b/src/org/thoughtcrime/securesms/ConversationItem.java
index 45560421f..88c213e48 100644
--- a/src/org/thoughtcrime/securesms/ConversationItem.java
+++ b/src/org/thoughtcrime/securesms/ConversationItem.java
@@ -122,7 +122,6 @@ public class ConversationItem extends LinearLayout
private int incomingBubbleColor;
private int outgoingBubbleColor;
- private int forwardedTitleColor;
private final PassthroughClickListener passthroughClickListener = new PassthroughClickListener();
@@ -265,13 +264,11 @@ public class ConversationItem extends LinearLayout
final int[] attributes = new int[] {
R.attr.conversation_item_incoming_bubble_color,
R.attr.conversation_item_outgoing_bubble_color,
- R.attr.conversation_item_incoming_text_secondary_color
};
final TypedArray attrs = context.obtainStyledAttributes(attributes);
incomingBubbleColor = attrs.getColor(0, Color.WHITE);
outgoingBubbleColor = attrs.getColor(1, Color.WHITE);
- forwardedTitleColor = attrs.getColor(2, Color.BLACK);
attrs.recycle();
}
@@ -641,7 +638,7 @@ public class ConversationItem extends LinearLayout
private void setGroupMessageStatus() {
if (messageRecord.isForwarded()) {
this.groupSender.setText(context.getString(R.string.forwarded_message));
- this.groupSender.setTextColor(forwardedTitleColor);
+ this.groupSender.setTextColor(context.getResources().getColor(R.color.unknown_sender));
}
else if (groupThread && !messageRecord.isOutgoing() && dcContact !=null) {
this.groupSender.setText(dcContact.getDisplayName());
diff --git a/src/org/thoughtcrime/securesms/components/QuoteView.java b/src/org/thoughtcrime/securesms/components/QuoteView.java
index 4e7690753..d448ea4ff 100644
--- a/src/org/thoughtcrime/securesms/components/QuoteView.java
+++ b/src/org/thoughtcrime/securesms/components/QuoteView.java
@@ -141,15 +141,23 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
private void setQuoteAuthor(@Nullable Recipient author) {
if (author == null) {
authorView.setVisibility(GONE);
- return;
- }
-
- DcContact contact = author.getDcContact();
- if (contact != null) {
+ quoteBarView.setBackgroundColor(getForwardedColor());
+ } else if (quotedMsg.isForwarded()) {
authorView.setVisibility(VISIBLE);
- authorView.setText(contact.getDisplayName());
- quoteBarView.setBackgroundColor(contact.getArgbColor());
- authorView.setTextColor(contact.getArgbColor());
+ authorView.setText(getContext().getString(R.string.forwarded_message));
+ authorView.setTextColor(getForwardedColor());
+ quoteBarView.setBackgroundColor(getForwardedColor());
+ } else {
+ DcContact contact = author.getDcContact();
+ if (contact == null) {
+ authorView.setVisibility(GONE);
+ quoteBarView.setBackgroundColor(getForwardedColor());
+ } else {
+ authorView.setVisibility(VISIBLE);
+ authorView.setText(contact.getDisplayName());
+ authorView.setTextColor(contact.getArgbColor());
+ quoteBarView.setBackgroundColor(contact.getArgbColor());
+ }
}
}
@@ -217,4 +225,8 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
public DcMsg getOriginalMsg() {
return quotedMsg;
}
+
+ private int getForwardedColor() {
+ return getResources().getColor(R.color.unknown_sender);
+ }
}