|
@@ -136,23 +136,23 @@ class MagicOutcomingTextMessageViewHolder(itemView: View) : OutcomingTextMessage
|
|
realView.isSelected = true
|
|
realView.isSelected = true
|
|
}
|
|
}
|
|
val resources = sharedApplication!!.resources
|
|
val resources = sharedApplication!!.resources
|
|
- val bg_bubble_color = if (message.isDeleted) {
|
|
|
|
|
|
+ val bgBubbleColor = if (message.isDeleted) {
|
|
resources.getColor(R.color.bg_message_list_outcoming_bubble_deleted)
|
|
resources.getColor(R.color.bg_message_list_outcoming_bubble_deleted)
|
|
} else {
|
|
} else {
|
|
resources.getColor(R.color.bg_message_list_outcoming_bubble)
|
|
resources.getColor(R.color.bg_message_list_outcoming_bubble)
|
|
}
|
|
}
|
|
if (message.isGrouped) {
|
|
if (message.isGrouped) {
|
|
val bubbleDrawable = getMessageSelector(
|
|
val bubbleDrawable = getMessageSelector(
|
|
- bg_bubble_color,
|
|
|
|
|
|
+ bgBubbleColor,
|
|
resources.getColor(R.color.transparent),
|
|
resources.getColor(R.color.transparent),
|
|
- bg_bubble_color,
|
|
|
|
|
|
+ bgBubbleColor,
|
|
R.drawable.shape_grouped_outcoming_message)
|
|
R.drawable.shape_grouped_outcoming_message)
|
|
ViewCompat.setBackground(bubble, bubbleDrawable)
|
|
ViewCompat.setBackground(bubble, bubbleDrawable)
|
|
} else {
|
|
} else {
|
|
val bubbleDrawable = getMessageSelector(
|
|
val bubbleDrawable = getMessageSelector(
|
|
- bg_bubble_color,
|
|
|
|
|
|
+ bgBubbleColor,
|
|
resources.getColor(R.color.transparent),
|
|
resources.getColor(R.color.transparent),
|
|
- bg_bubble_color,
|
|
|
|
|
|
+ bgBubbleColor,
|
|
R.drawable.shape_outcoming_message)
|
|
R.drawable.shape_outcoming_message)
|
|
ViewCompat.setBackground(bubble, bubbleDrawable)
|
|
ViewCompat.setBackground(bubble, bubbleDrawable)
|
|
}
|
|
}
|