From 5c089b78387db0b17c7ec4140d939979ff1356bf Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 18 May 2024 12:54:56 +0200 Subject: [PATCH] Disabled integrity check by default --- app/src/main/java/eu/faircode/email/DB.java | 2 +- app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index e408efedf7..7e353ed92b 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -151,7 +151,7 @@ public abstract class DB extends RoomDatabase { File dbfile = configuration.context.getDatabasePath(DB_NAME); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(configuration.context); - boolean sqlite_integrity_check = prefs.getBoolean("sqlite_integrity_check", true); + boolean sqlite_integrity_check = prefs.getBoolean("sqlite_integrity_check", false); // https://www.sqlite.org/pragma.html#pragma_integrity_check if (sqlite_integrity_check && dbfile.exists()) { diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index aad849111b..083002631a 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -2350,7 +2350,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc swTaskDescription.setChecked(prefs.getBoolean("task_description", true)); swExternalStorage.setChecked(prefs.getBoolean("external_storage", false)); - swIntegrity.setChecked(prefs.getBoolean("sqlite_integrity_check", true)); + swIntegrity.setChecked(prefs.getBoolean("sqlite_integrity_check", false)); swWal.setChecked(prefs.getBoolean("wal", true)); swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", true)); swAnalyze.setChecked(prefs.getBoolean("sqlite_analyze", true));