mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-25 18:35:06 +01:00
Small improvement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user