|
@ -11,10 +11,12 @@ public class ViewModelMessages extends ViewModel { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
String[] getPrevNext(String thread) { |
|
|
String[] getPrevNext(String thread) { |
|
|
|
|
|
if (messages == null) |
|
|
|
|
|
return new String[]{null, null}; |
|
|
|
|
|
|
|
|
boolean found = false; |
|
|
boolean found = false; |
|
|
TupleMessageEx prev = null; |
|
|
TupleMessageEx prev = null; |
|
|
TupleMessageEx next = null; |
|
|
TupleMessageEx next = null; |
|
|
|
|
|
|
|
|
for (int i = 0; i < messages.size(); i++) { |
|
|
for (int i = 0; i < messages.size(); i++) { |
|
|
TupleMessageEx item = messages.get(i); |
|
|
TupleMessageEx item = messages.get(i); |
|
|
if (item == null) |
|
|
if (item == null) |
|
|