1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

Small improvement

This commit is contained in:
M66B 2022-10-07 15:01:37 +02:00
parent af92b31ac9
commit 77dbd3dbc7

View file

@ -86,10 +86,6 @@ public class WorkerFts extends Worker {
if (text == null)
text = "";
boolean fts = prefs.getBoolean("fts", false);
if (!fts)
break;
try {
sdb.beginTransaction();
Fts4DbHelper.insert(sdb, message, text);
@ -105,6 +101,10 @@ public class WorkerFts extends Worker {
if (ids.size() >= INDEX_BATCH_SIZE)
markIndexed(db, ids);
boolean fts = prefs.getBoolean("fts", false);
if (!fts)
break;
} catch (Throwable ex) {
Log.e(ex);
}