Fixed seen/unseen expand/collapse

This commit is contained in:
M66B 2019-12-31 18:36:01 +01:00
parent 4adc45cd6e
commit fb4bf8a1ba
1 changed files with 10 additions and 2 deletions

View File

@ -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