|
@@ -164,18 +164,18 @@ class TalkSpecificViewThemeUtils @Inject constructor(
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- fun setCheckedBackground(linearLayout: LinearLayout, incoming: Boolean) {
|
|
|
|
|
|
+ fun setCheckedBackground(linearLayout: LinearLayout, outgoing: Boolean) {
|
|
withScheme(linearLayout) { scheme ->
|
|
withScheme(linearLayout) { scheme ->
|
|
val drawable = AppCompatResources
|
|
val drawable = AppCompatResources
|
|
.getDrawable(linearLayout.context, R.drawable.reaction_self_background)!!
|
|
.getDrawable(linearLayout.context, R.drawable.reaction_self_background)!!
|
|
.mutate()
|
|
.mutate()
|
|
- val backgroundColor = if (incoming) {
|
|
|
|
- dynamicColor.primaryContainer().getArgb(scheme)
|
|
|
|
- } else {
|
|
|
|
|
|
+ val backgroundColor = if (outgoing) {
|
|
ContextCompat.getColor(
|
|
ContextCompat.getColor(
|
|
linearLayout.context,
|
|
linearLayout.context,
|
|
R.color.bg_message_list_incoming_bubble
|
|
R.color.bg_message_list_incoming_bubble
|
|
)
|
|
)
|
|
|
|
+ } else {
|
|
|
|
+ dynamicColor.primaryContainer().getArgb(scheme)
|
|
}
|
|
}
|
|
DrawableCompat.setTintList(
|
|
DrawableCompat.setTintList(
|
|
drawable,
|
|
drawable,
|