Added logging

pull/200/head
M66B 3 years ago
parent 53f603d072
commit 9577ee7b13

@ -318,6 +318,7 @@ public class ViewModelMessages extends ViewModel {
LimitOffsetDataSource<TupleMessageEx> ds = (LimitOffsetDataSource<TupleMessageEx>) plist.getDataSource(); LimitOffsetDataSource<TupleMessageEx> ds = (LimitOffsetDataSource<TupleMessageEx>) plist.getDataSource();
int count = ds.countItems(); int count = ds.countItems();
for (int i = 0; i < count; i += 100) { for (int i = 0; i < count; i += 100) {
Log.i("Observe previous/next load range=" + i + "/" + count);
List<TupleMessageEx> messages = ds.loadRange(i, Math.min(100, count - i)); List<TupleMessageEx> messages = ds.loadRange(i, Math.min(100, count - i));
for (int j = 0; j < messages.size(); j++) for (int j = 0; j < messages.size(); j++)
if (messages.get(j).id == id) { if (messages.get(j).id == id) {

Loading…
Cancel
Save