|
|
@ -95,14 +95,17 @@ public class ViewModelMessages extends ViewModel {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
if (found) {
|
|
|
|
if (found) {
|
|
|
|
prev = item;
|
|
|
|
prev = item;
|
|
|
|
list.getValue().loadAround(i);
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (thread.equals(item.thread))
|
|
|
|
if (thread.equals(item.thread)) {
|
|
|
|
found = true;
|
|
|
|
found = true;
|
|
|
|
else
|
|
|
|
list.getValue().loadAround(i);
|
|
|
|
|
|
|
|
} else
|
|
|
|
next = item;
|
|
|
|
next = item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!found)
|
|
|
|
|
|
|
|
return new Target[]{null, null};
|
|
|
|
|
|
|
|
|
|
|
|
return new Target[]{
|
|
|
|
return new Target[]{
|
|
|
|
prev == null ? null : new Target(prev.account, prev.thread, prev.id, prev.ui_found),
|
|
|
|
prev == null ? null : new Target(prev.account, prev.thread, prev.id, prev.ui_found),
|
|
|
|
next == null ? null : new Target(next.account, next.thread, next.id, next.ui_found)};
|
|
|
|
next == null ? null : new Target(next.account, next.thread, next.id, next.ui_found)};
|
|
|
|