mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Optimization
This commit is contained in:
parent
646f76286e
commit
69b9a6b6c5
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue