tagTextView.setLayoutParams(params);
viewHolder.categories.addView(tagTextView);
}else{
boolean useLight = Utils.useLightTextColor(context, tag.getColor());
TextView tagTextView = new TextView(context);
<BUG>tagTextView.setText(tag.getName());
tagTextView.setTextColor(useLight ? Color.WHITE : Color.BLACK);
final Drawable drawable = context.getResources().getDrawable(R.drawable.color_background_with_border).mutate();</BUG>
drawable.setColorFilter(Color.parseColor(tag.getColor().getHexcode()), PorterDuff.Mode.MULTIPLY);
tagTextView.setBackground(drawable);

tagTextView.setLayoutParams(params);
viewHolder.categories.addView(tagTextView);
}else{
boolean useLight = Utils.useLightTextColor(context, tag.getColor());
TextView tagTextView = new TextView(context);
tagTextView.setText(tag.getName());
if (isSelected) {
tagTextView.setTextColor(Color.BLACK);
} else {
tagTextView.setTextColor(useLight ? Color.WHITE : Color.BLACK);
}
final Drawable drawable = context.getResources().getDrawable(R.drawable.color_background_with_border).mutate();
drawable.setColorFilter(Color.parseColor(tag.getColor().getHexcode()), PorterDuff.Mode.MULTIPLY);
tagTextView.setBackground(drawable);
