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 {
|
public class ConfigManager {
|
||||||
private static ConfigManager instance = null;
|
private static ConfigManager instance = null;
|
||||||
|
|
||||||
private final SQLiteDatabase db =
|
private final SQLiteDatabase db = SQLiteDatabase.openDatabase(
|
||||||
SQLiteDatabase.openOrCreateDatabase(ConfigFileManager.dbPath.getAbsolutePath(), null,
|
ConfigFileManager.dbPath.getAbsolutePath(),
|
||||||
sqLiteDatabase -> Log.w(TAG, "database corrupted"));
|
null,
|
||||||
|
SQLiteDatabase.CREATE_IF_NECESSARY | SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING,
|
||||||
|
sqLiteDatabase -> Log.w(TAG, "database corrupted")
|
||||||
|
);
|
||||||
|
|
||||||
private boolean verboseLog = true;
|
private boolean verboseLog = true;
|
||||||
private boolean dexObfuscate = true;
|
private boolean dexObfuscate = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue