mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
prevent out of range
This commit is contained in:
@@ -320,7 +320,9 @@ public class ViewModelMessages extends ViewModel {
|
||||
for (int j = 0; j < messages.size(); j++)
|
||||
if (messages.get(j).id == id) {
|
||||
int pos = i + j;
|
||||
model.list.getValue().loadAround(pos);
|
||||
|
||||
if (pos < plist.size())
|
||||
plist.loadAround(pos);
|
||||
|
||||
List<TupleMessageEx> lprev = null;
|
||||
if (pos - 1 >= 0)
|
||||
|
||||
Reference in New Issue
Block a user