Full check DB for Oppo

pull/209/head
M66B 2 years ago
parent 0669d3c677
commit f576d6c8c1

@ -150,7 +150,7 @@ public abstract class DB extends RoomDatabase {
// 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()) {
String check = (Helper.isRedmiNote() || Helper.isOnePlus() || BuildConfig.DEBUG String check = (Helper.isRedmiNote() || Helper.isOnePlus() || Helper.isOppo() || BuildConfig.DEBUG
? "integrity_check" : "quick_check"); ? "integrity_check" : "quick_check");
try (SQLiteDatabase db = SQLiteDatabase.openDatabase(dbfile.getPath(), null, SQLiteDatabase.OPEN_READWRITE)) { try (SQLiteDatabase db = SQLiteDatabase.openDatabase(dbfile.getPath(), null, SQLiteDatabase.OPEN_READWRITE)) {
Log.i("PRAGMA " + check); Log.i("PRAGMA " + check);

Loading…
Cancel
Save