Reset search early

pull/209/head
M66B 2 years ago
parent 4c8127c6e0
commit e91322c3f0

@ -133,15 +133,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
this.intf = intf;
this.state = new State();
if (criteria != null)
executor.submit(new Runnable() {
@Override
public void run() {
Log.i("Boundary reset search");
DB.getInstance(context).message().resetSearch();
}
});
return this.state;
}

@ -10030,6 +10030,18 @@ public class FragmentMessages extends FragmentBase
if (manager.isDestroyed())
return;
DB db = DB.getInstance(context);
db.getQueryExecutor().execute(new Runnable() {
@Override
public void run() {
try {
db.message().resetSearch();
} catch (Throwable ex) {
Log.e(ex);
}
}
});
Bundle args = new Bundle();
args.putLong("account", account);
args.putLong("folder", folder);

Loading…
Cancel
Save