Merge branch 'master' into a15

This commit is contained in:
M66B 2024-05-18 12:55:14 +02:00
commit ff409a6a40
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

@ -2348,7 +2348,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));