Optimization

This commit is contained in:
M66B 2021-02-23 21:39:28 +01:00
parent 646f76286e
commit 69b9a6b6c5
1 changed files with 1 additions and 6 deletions

View File

@ -2591,12 +2591,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
properties.setValue("inline", message.id, isChecked);
cowner.restart();
DB.getInstance(context).attachment().liveAttachments(message.id).observe(cowner, new Observer<List<EntityAttachment>>() {
@Override
public void onChanged(@Nullable List<EntityAttachment> attachments) {
bindAttachments(message, attachments, true);
}
});
bindAttachments(message, properties.getAttachments(message.id), true);
}
});