Small improvement

This commit is contained in:
M66B 2023-12-12 09:03:24 +01:00
parent 662d3a6c2e
commit d24e641bcb
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ public abstract class DB extends RoomDatabase {
if (cache_size != null) {
cache_size = -cache_size; // kibibytes
Log.i("Set PRAGMA cache_size=" + cache_size);
try (Cursor cursor = db.query("PRAGMA cache_size=" + cache_size + ";")) {
try (Cursor cursor = db.query(new SimpleSQLiteQuery("PRAGMA cache_size=" + cache_size + ";"))) {
cursor.moveToNext(); // required
}
}