mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
prevent out of range
This commit is contained in:
parent
dc5a15a8bd
commit
9d2ab7c2e9
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue