Optimization

pull/194/head
M66B 4 years ago
parent 646f76286e
commit 69b9a6b6c5

@ -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…
Cancel
Save