Fixed no messages disappearing

pull/147/head
M66B 6 years ago
parent c6e3fec885
commit cbbcad98cb

@ -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() {

@ -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)

Loading…
Cancel
Save