fix: Save as

This commit is contained in:
J-Jamet
2023-10-29 20:45:35 +01:00
parent f13d99e0d1
commit 7198ffff43

View File

@@ -44,7 +44,8 @@ open class SaveDatabaseRunnable(
override fun onActionRun() { override fun onActionRun() {
database.checkVersion() database.checkVersion()
if (saveDatabase && result.isSuccess) { // Save database in all cases if it's a copy
if ((databaseCopyUri != null || saveDatabase) && result.isSuccess) {
try { try {
val contentResolver = context.contentResolver val contentResolver = context.contentResolver
// Build temp database file to avoid file corruption if error // Build temp database file to avoid file corruption if error