mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Moved attachments cache
This commit is contained in:
@@ -161,6 +161,7 @@ public class FragmentMessages extends FragmentBase {
|
||||
private Map<String, List<Long>> values = new HashMap<>();
|
||||
private Map<Long, Spanned> bodies = new HashMap<>();
|
||||
private Map<Long, String> html = new HashMap<>();
|
||||
private LongSparseArray<List<EntityAttachment>> attachments = new LongSparseArray<>();
|
||||
private LongSparseArray<TupleAccountSwipes> accountSwipes = new LongSparseArray<>();
|
||||
|
||||
private BoundaryCallbackMessages boundaryCallback = null;
|
||||
@@ -713,6 +714,16 @@ public class FragmentMessages extends FragmentBase {
|
||||
return html.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAttchments(long id, List<EntityAttachment> list) {
|
||||
attachments.put(id, list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EntityAttachment> getAttachments(long id) {
|
||||
return attachments.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void scrollTo(final int pos, final int dy) {
|
||||
new Handler().post(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user