diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java index d6c7ff7ad..e9c172173 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java @@ -168,29 +168,18 @@ public class ConversationItem extends AbstractFlexibleItem + chip.chipBackgroundColor = ColorStateList.valueOf(color) + chip.setTextColor(theme.colorText) + } + } + + fun colorChipOutlined(chip: Chip, strokeWidth: Float) { + withElementColor(chip) { color -> + chip.chipBackgroundColor = ColorStateList.valueOf(Color.TRANSPARENT) + chip.chipStrokeWidth = strokeWidth + chip.chipStrokeColor = ColorStateList.valueOf(color) + chip.setTextColor(color) + } + } + companion object { private val THEMEABLE_PLACEHOLDER_IDS = listOf( R.drawable.ic_mimetype_package_x_generic,