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);
}