Refactoring

This commit is contained in:
M66B
2024-08-04 15:22:23 +02:00
parent bf77f8cc91
commit 28a70479c5
2 changed files with 15 additions and 1 deletions

View File

@@ -1387,7 +1387,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (account_color == 2 &&
!Objects.equals(ivBadge.getTag(), colorBackground)) {
ivBadge.setTag(colorBackground);
((GradientDrawable) ivBadge.getDrawable().mutate()).setColor(colorBackground);
Helper.setColor(ivBadge.getDrawable(), colorBackground);
}
ivBadge.setVisibility(account_color == 2 ? View.VISIBLE : View.GONE);