mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Fixed previous/next direction
This commit is contained in:
parent
ee00f76f78
commit
ca6a716fbe
1 changed files with 2 additions and 2 deletions
|
@ -282,12 +282,12 @@ public class ViewModelMessages extends ViewModel {
|
|||
|
||||
if (pos - 1 >= 0) {
|
||||
TupleMessageEx next = messages.get(pos - 1);
|
||||
curState[0] = new Pair<>(next == null ? null : next.id, pos - 1);
|
||||
curState[2] = new Pair<>(next == null ? null : next.id, pos - 1);
|
||||
}
|
||||
|
||||
if (pos + 1 < messages.size()) {
|
||||
TupleMessageEx prev = messages.get(pos + 1);
|
||||
curState[2] = new Pair<>(prev == null ? null : prev.id, pos + 1);
|
||||
curState[0] = new Pair<>(prev == null ? null : prev.id, pos + 1);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue