Search fix

This commit is contained in:
M66B 2019-10-29 12:09:50 +01:00
parent b63314c063
commit 965b959ef1
1 changed files with 3 additions and 3 deletions

View File

@ -195,13 +195,13 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
" snoozed=" + snoozed +
" offset=" + state.offset +
" size=" + state.matches.size());
if (state.matches.size() == 0)
break;
state.offset += Math.min(state.matches.size(), SEARCH_LIMIT);
state.index = 0;
}
if (state.matches.size() == 0)
break;
for (int i = state.index; i < state.matches.size() && found < pageSize && !state.destroyed; i++) {
state.index = i + 1;