Show if attachments in conversation

This commit is contained in:
M66B
2022-02-26 15:55:48 +01:00
parent f00f789d10
commit 84493e1d47
3 changed files with 12 additions and 1 deletions

View File

@@ -1351,7 +1351,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibSnoozed.setVisibility(message.ui_snoozed == null && !message.ui_unsnoozed ? View.GONE : View.VISIBLE);
ivAnswered.setVisibility(message.ui_answered ? View.VISIBLE : View.GONE);
ivForwarded.setVisibility(message.isForwarded() ? View.VISIBLE : View.GONE);
ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE);
ivAttachments.setVisibility(message.totalAttachments > 0 ? View.VISIBLE : View.GONE);
if (viewType == ViewType.FOLDER)
tvFolder.setText(outbox ? message.identityEmail : message.accountName);
@@ -7133,6 +7133,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
same = false;
log("visible_unseen changed " + prev.visible_unseen + "/" + next.visible_unseen, next.id);
}
if (prev.totalAttachments != next.totalAttachments) {
same = false;
log("totalAttachments changed " + prev.totalAttachments + "/" + next.totalAttachments, next.id);
}
if (!Objects.equals(prev.totalSize, next.totalSize)) {
same = false;
log("totalSize changed", next.id);