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 @Override
public void run() { public void run() {
try { try {
searching = true; searching = model.isSearching();
handler.post(new Runnable() { handler.post(new Runnable() {
@Override @Override
public void run() { public void run() {

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

Loading…
Cancel
Save