Replace corruption handler of DB (#1982)

This commit is contained in:
LoveSy 2022-06-09 15:09:31 +08:00 committed by GitHub
parent 7e12c50229
commit 5ea6dffcbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ public class ConfigManager {
private static ConfigManager instance = null;
private final SQLiteDatabase db =
SQLiteDatabase.openOrCreateDatabase(ConfigFileManager.dbPath, null);
SQLiteDatabase.openOrCreateDatabase(ConfigFileManager.dbPath.getAbsolutePath(), null,
sqLiteDatabase -> Log.w(TAG, "database corrupted"));
private boolean verboseLog = true;
private boolean dexObfuscate = false;