Stop indexing on sqlite error

pull/209/head
M66B 2 years ago
parent 36d0286eb7
commit 43da662373

@ -25,6 +25,7 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager;
@ -93,6 +94,9 @@ public class WorkerFts extends Worker {
sdb.beginTransaction();
Fts4DbHelper.insert(sdb, message, text);
sdb.setTransactionSuccessful();
} catch (SQLiteException ex) {
Log.w(ex);
break;
} finally {
sdb.endTransaction();
}

Loading…
Cancel
Save