mirror of https://github.com/M66B/FairEmail.git
Fixed reload body on inline images
This commit is contained in:
parent
fa7ac2aa6a
commit
3425a45e20
|
@ -1813,6 +1813,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
DB db = DB.getInstance(context);
|
||||
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
|
||||
properties.setAttachments(message.id, attachments);
|
||||
|
||||
boolean signed_data = false;
|
||||
for (EntityAttachment attachment : attachments)
|
||||
|
|
|
@ -289,13 +289,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
private Long closeId = null;
|
||||
private int autoCloseCount = 0;
|
||||
private boolean autoExpanded = true;
|
||||
private Map<String, String> kv = new HashMap<>();
|
||||
private Map<String, List<Long>> values = new HashMap<>();
|
||||
private LongSparseArray<Float> sizes = new LongSparseArray<>();
|
||||
private LongSparseArray<Integer> heights = new LongSparseArray<>();
|
||||
private LongSparseArray<Pair<Integer, Integer>> positions = new LongSparseArray<>();
|
||||
private LongSparseArray<List<EntityAttachment>> attachments = new LongSparseArray<>();
|
||||
private LongSparseArray<TupleAccountSwipes> accountSwipes = new LongSparseArray<>();
|
||||
|
||||
final private Map<String, String> kv = new HashMap<>();
|
||||
final private Map<String, List<Long>> values = new HashMap<>();
|
||||
final private LongSparseArray<Float> sizes = new LongSparseArray<>();
|
||||
final private LongSparseArray<Integer> heights = new LongSparseArray<>();
|
||||
final private LongSparseArray<Pair<Integer, Integer>> positions = new LongSparseArray<>();
|
||||
final private LongSparseArray<List<EntityAttachment>> attachments = new LongSparseArray<>();
|
||||
final private LongSparseArray<TupleAccountSwipes> accountSwipes = new LongSparseArray<>();
|
||||
|
||||
private NumberFormat NF = NumberFormat.getNumberInstance();
|
||||
|
||||
|
@ -1531,13 +1532,17 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
@Override
|
||||
public void setAttachments(long id, List<EntityAttachment> list) {
|
||||
synchronized (attachments) {
|
||||
attachments.put(id, list);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EntityAttachment> getAttachments(long id) {
|
||||
synchronized (attachments) {
|
||||
return attachments.get(id);
|
||||
}
|
||||
}
|
||||
|
||||
public void scrollTo(final int pos, final int y) {
|
||||
new Handler().post(new Runnable() {
|
||||
|
|
Loading…
Reference in New Issue