Fixed no messages disappearing

This commit is contained in:
M66B 2018-12-26 09:14:53 +00:00
parent c6e3fec885
commit cbbcad98cb
2 changed files with 6 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
@Override
public void run() {
try {
searching = true;
searching = model.isSearching();
handler.post(new Runnable() {
@Override
public void run() {

View File

@ -75,6 +75,11 @@ public class ViewModelBrowse extends ViewModel {
currentState.index = -1;
}
boolean isSearching() {
State state = currentState;
return (state != null && state.search != null);
}
void load() throws MessagingException, IOException {
State state = currentState;
if (state == null)