mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Stop indexing on sqlite error
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user