Predefine some sqlite modes
This commit is contained in:
parent
46558c6bc9
commit
a49bb6074e
|
|
@ -91,9 +91,12 @@ import java.util.zip.ZipOutputStream;
|
|||
public class ConfigManager {
|
||||
private static ConfigManager instance = null;
|
||||
|
||||
private final SQLiteDatabase db =
|
||||
SQLiteDatabase.openOrCreateDatabase(ConfigFileManager.dbPath.getAbsolutePath(), null,
|
||||
sqLiteDatabase -> Log.w(TAG, "database corrupted"));
|
||||
private final SQLiteDatabase db = SQLiteDatabase.openDatabase(
|
||||
ConfigFileManager.dbPath.getAbsolutePath(),
|
||||
null,
|
||||
SQLiteDatabase.CREATE_IF_NECESSARY | SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING,
|
||||
sqLiteDatabase -> Log.w(TAG, "database corrupted")
|
||||
);
|
||||
|
||||
private boolean verboseLog = true;
|
||||
private boolean dexObfuscate = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue