mirror of https://github.com/M66B/FairEmail.git
Rebind/collapse on mark seen/unseen
This commit is contained in:
parent
b09e2058de
commit
b532374c28
|
@ -3301,13 +3301,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
if (amessage == null || !amessage.id.equals(id))
|
if (amessage == null || !amessage.id.equals(id))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
boolean seen = args.getBoolean("seen");
|
properties.setValue("expanded", message.id, false);
|
||||||
if (!seen) {
|
message.ui_seen = args.getBoolean("seen");
|
||||||
properties.setValue("expanded", message.id, false);
|
message.unseen = (message.ui_seen ? 0 : message.count);
|
||||||
ibExpander.setTag(false);
|
bindTo(message, getAdapterPosition());
|
||||||
ibExpander.setImageLevel(1 /* more */);
|
|
||||||
clearExpanded(amessage);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue