mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 10:39:25 +00:00
Reset search early
This commit is contained in:
parent
4c8127c6e0
commit
e91322c3f0
2 changed files with 12 additions and 9 deletions
|
@ -133,15 +133,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
this.intf = intf;
|
this.intf = intf;
|
||||||
this.state = new State();
|
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;
|
return this.state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10030,6 +10030,18 @@ public class FragmentMessages extends FragmentBase
|
||||||
if (manager.isDestroyed())
|
if (manager.isDestroyed())
|
||||||
return;
|
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();
|
Bundle args = new Bundle();
|
||||||
args.putLong("account", account);
|
args.putLong("account", account);
|
||||||
args.putLong("folder", folder);
|
args.putLong("folder", folder);
|
||||||
|
|
Loading…
Add table
Reference in a new issue