Fixed reload body on inline images

This commit is contained in:
M66B 2020-05-04 19:36:48 +02:00
parent fa7ac2aa6a
commit 3425a45e20
2 changed files with 15 additions and 9 deletions

View File

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

View File

@ -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,12 +1532,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void setAttachments(long id, List<EntityAttachment> list) {
attachments.put(id, list);
synchronized (attachments) {
attachments.put(id, list);
}
}
@Override
public List<EntityAttachment> getAttachments(long id) {
return attachments.get(id);
synchronized (attachments) {
return attachments.get(id);
}
}
public void scrollTo(final int pos, final int y) {