mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 02:23:38 +02:00
Optimization
This commit is contained in:
@@ -1384,12 +1384,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
(message.accountColor == null || !ActivityBilling.isPro(context)
|
||||
? colorSeparator : message.accountColor);
|
||||
|
||||
if (account_color == 2)
|
||||
if (account_color == 2 &&
|
||||
!Objects.equals(ivBadge.getTag(), colorBackground)) {
|
||||
ivBadge.setTag(colorBackground);
|
||||
((GradientDrawable) ivBadge.getDrawable().mutate()).setColor(colorBackground);
|
||||
}
|
||||
ivBadge.setVisibility(account_color == 2 ? View.VISIBLE : View.GONE);
|
||||
|
||||
if (account_color == 1 &&
|
||||
!Objects.equals(vwColor.getTag() == null, colorBackground)) {
|
||||
!Objects.equals(vwColor.getTag(), colorBackground)) {
|
||||
vwColor.setTag(colorBackground);
|
||||
vwColor.setBackgroundColor(colorBackground);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user