mirror of https://github.com/M66B/FairEmail.git
Disabled integrity check by default
This commit is contained in:
parent
e18b6196e7
commit
5c089b7838
|
@ -151,7 +151,7 @@ public abstract class DB extends RoomDatabase {
|
||||||
File dbfile = configuration.context.getDatabasePath(DB_NAME);
|
File dbfile = configuration.context.getDatabasePath(DB_NAME);
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(configuration.context);
|
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
|
// https://www.sqlite.org/pragma.html#pragma_integrity_check
|
||||||
if (sqlite_integrity_check && dbfile.exists()) {
|
if (sqlite_integrity_check && dbfile.exists()) {
|
||||||
|
|
|
@ -2350,7 +2350,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
swTaskDescription.setChecked(prefs.getBoolean("task_description", true));
|
swTaskDescription.setChecked(prefs.getBoolean("task_description", true));
|
||||||
swExternalStorage.setChecked(prefs.getBoolean("external_storage", false));
|
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));
|
swWal.setChecked(prefs.getBoolean("wal", true));
|
||||||
swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", true));
|
swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", true));
|
||||||
swAnalyze.setChecked(prefs.getBoolean("sqlite_analyze", true));
|
swAnalyze.setChecked(prefs.getBoolean("sqlite_analyze", true));
|
||||||
|
|
Loading…
Reference in New Issue