Differentiate between normal and found threads

This commit is contained in:
M66B
2018-11-05 18:56:57 +00:00
parent de21a65935
commit 5319d31c51
5 changed files with 15 additions and 7 deletions

View File

@@ -56,17 +56,19 @@ public class ViewModelMessages extends ViewModel {
next = item;
}
return new Target[]{
prev == null ? null : new Target(prev.account, prev.thread),
next == null ? null : new Target(next.account, next.thread)};
prev == null ? null : new Target(prev.account, prev.thread, prev.ui_found),
next == null ? null : new Target(next.account, next.thread, next.ui_found)};
}
class Target {
long account;
String thread;
boolean found;
Target(long account, String thread) {
Target(long account, String thread, boolean found) {
this.account = account;
this.thread = thread;
this.found = found;
}
}
}