Disabled integrity check by default

This commit is contained in:
M66B 2024-05-18 12:54:56 +02:00
parent e18b6196e7
commit 5c089b7838
2 changed files with 2 additions and 2 deletions

View File

@ -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()) {

View File

@ -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));