Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Jun 1, 2024
2 parents 0834a46 + 67c5177 commit e2ea1bc
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,14 @@ class DatabaseAccess(
if (!query.moveToFirst() || query.getString(0).lowercase() != "ok") {
context.log.error("Failed to perform integrity check on ${type.fileName}")
context.androidContext.deleteDatabase(type.fileName)
return@apply
}
context.log.verbose("database ${type.fileName} integrity check passed")
}
}?.close()
}
}

fun finalize() {
openedDatabases.values.forEach { it.close() }
context.log.verbose("Database closed")
}

private fun <T : DatabaseObject> SQLiteDatabase.readDatabaseObject(
Expand Down

0 comments on commit e2ea1bc

Please sign in to comment.