Fixed seen/unseen expand/collapse

pull/172/head
M66B 5 years ago
parent 4adc45cd6e
commit fb4bf8a1ba

@ -3296,10 +3296,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
protected void onExecuted(Bundle args, Void ignored) {
long id = args.getLong("id");
TupleMessageEx amessage = getMessage();
if (amessage == null || !amessage.id.equals(id))
return;
boolean seen = args.getBoolean("seen");
if (!seen)
if (!seen) {
properties.setValue("expanded", message.id, false);
notifyDataSetChanged();
ibExpander.setTag(false);
ibExpander.setImageLevel(1 /* more */);
clearExpanded(amessage);
}
}
@Override

Loading…
Cancel
Save