mirror of https://github.com/M66B/FairEmail.git
Search fix
This commit is contained in:
parent
b63314c063
commit
965b959ef1
|
@ -195,13 +195,13 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
" snoozed=" + snoozed +
|
" snoozed=" + snoozed +
|
||||||
" offset=" + state.offset +
|
" offset=" + state.offset +
|
||||||
" size=" + state.matches.size());
|
" size=" + state.matches.size());
|
||||||
if (state.matches.size() == 0)
|
|
||||||
break;
|
|
||||||
|
|
||||||
state.offset += Math.min(state.matches.size(), SEARCH_LIMIT);
|
state.offset += Math.min(state.matches.size(), SEARCH_LIMIT);
|
||||||
state.index = 0;
|
state.index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state.matches.size() == 0)
|
||||||
|
break;
|
||||||
|
|
||||||
for (int i = state.index; i < state.matches.size() && found < pageSize && !state.destroyed; i++) {
|
for (int i = state.index; i < state.matches.size() && found < pageSize && !state.destroyed; i++) {
|
||||||
state.index = i + 1;
|
state.index = i + 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue