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