mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Added sync
This commit is contained in:
@@ -2051,6 +2051,12 @@ public class Helper {
|
||||
|
||||
// Files
|
||||
|
||||
static {
|
||||
System.loadLibrary("fairemail");
|
||||
}
|
||||
|
||||
public static native void sync();
|
||||
|
||||
static String sanitizeFilename(String name) {
|
||||
if (name == null)
|
||||
return null;
|
||||
|
||||
@@ -109,8 +109,10 @@ public class WorkerFts extends Worker {
|
||||
|
||||
markIndexed(db, ids);
|
||||
|
||||
if (checkpoints)
|
||||
if (checkpoints) {
|
||||
DB.checkpoint(context);
|
||||
Helper.sync();
|
||||
}
|
||||
|
||||
Log.i("FTS indexed=" + indexed);
|
||||
return Result.success();
|
||||
|
||||
Reference in New Issue
Block a user