|
|
|
@ -21,7 +21,6 @@ package eu.faircode.email;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.SharedPreferences;
|
|
|
|
|
import android.database.Cursor;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
@ -66,10 +65,9 @@ public class WorkerFts extends Worker {
|
|
|
|
|
|
|
|
|
|
SQLiteDatabase sdb = FtsDbHelper.getInstance(context);
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
try (Cursor cursor = db.message().getMessageFts()) {
|
|
|
|
|
while (cursor.moveToNext())
|
|
|
|
|
|
|
|
|
|
for (long id : db.message().getMessageFts())
|
|
|
|
|
try {
|
|
|
|
|
long id = cursor.getLong(0);
|
|
|
|
|
Log.i("FTS index=" + id);
|
|
|
|
|
|
|
|
|
|
ids.add(id);
|
|
|
|
@ -108,7 +106,6 @@ public class WorkerFts extends Worker {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
markIndexed(db, ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Log.i("FTS indexed=" + indexed);
|
|
|
|
|
return Result.success();
|
|
|
|
|