mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
Cleanup
This commit is contained in:
parent
fda65c1f24
commit
e7c569c2ec
1 changed files with 2 additions and 5 deletions
|
@ -642,9 +642,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
boolean inbox = EntityFolder.INBOX.equals(message.folderType);
|
||||
boolean outbox = EntityFolder.OUTBOX.equals(message.folderType);
|
||||
|
||||
if (viewType == ViewType.THREAD)
|
||||
card.setVisibility(!filter_duplicates || !message.duplicate ? View.VISIBLE : View.GONE);
|
||||
|
||||
// Text size
|
||||
if (textSize != 0) {
|
||||
tvFrom.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * (message.unseen > 0 ? 1.1f : 1f));
|
||||
|
@ -716,8 +713,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
tvTime.setTextColor(colorUnseen);
|
||||
|
||||
// Account color
|
||||
vwColor.setBackgroundColor(message.accountColor == null ? Color.TRANSPARENT : message.accountColor);
|
||||
vwColor.setVisibility(ActivityBilling.isPro(context) ? View.VISIBLE : View.INVISIBLE);
|
||||
vwColor.setBackgroundColor(message.accountColor == null || !ActivityBilling.isPro(context)
|
||||
? Color.TRANSPARENT : message.accountColor);
|
||||
|
||||
// Expander
|
||||
boolean expanded = (viewType == ViewType.THREAD && properties.getValue("expanded", message.id));
|
||||
|
|
Loading…
Reference in a new issue