mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
af92b31ac9
commit
77dbd3dbc7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue