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