fix: Deleting history #2718

This commit is contained in:
J-Jamet committed 2026-09-23 12:27:50 +02:00
1 parent a11dc13b48
commit 27136cf0b3
7 files changed
+12 -3

No files matched your search

+3
View File
@@ -1,3 +1,6 @@
# KeePassDX(4.5.5)
* Fix deleting history #2718
# KeePassDX(4.5.4)
* Fix for adding attachments #2694
* Fix custom icon selection exception ##2684
+2 -2
View File
@@ -19,8 +19,8 @@ android {
applicationId = "com.kunzisoft.keepass"
minSdk = 19
targetSdk = 36
versionCode = 45400
versionName = "4.5.4"
versionCode = 45500
versionName = "4.5.5"
multiDexEnabled = true
testApplicationId = "com.kunzisoft.keepass.tests"
@@ -65,7 +65,7 @@ open class SaveDatabaseRunnable(
mMasterCredential = mainCredential?.toMasterCredential(contentResolver)
// Build temp database file to avoid file corruption if error
database.saveData(
cacheFile = File(context.cacheDir, databaseCopyUri.hashCode().toString()),
cacheFile = File.createTempFile("db_", ".tmp", context.cacheDir),
databaseOutputStream = {
contentResolver.getUriOutputStream(databaseCopyUri ?: database.fileUri)
},
@@ -25,6 +25,7 @@ import com.kunzisoft.keepass.database.action.SaveDatabaseRunnable
import com.kunzisoft.keepass.database.element.Entry
import com.kunzisoft.keepass.database.element.EntryId
import com.kunzisoft.keepass.hardware.HardwareKey
import com.kunzisoft.keepass.utils.AppUtil.getLimits
class DeleteEntryHistoryDatabaseRunnable (
context: Context,
@@ -51,6 +52,7 @@ class DeleteEntryHistoryDatabaseRunnable (
override fun onStartRun() {
try {
database.kdfEngine?.checkLimits(context.getLimits())
mMainEntry?.let {
database.removeEntryHistory(it, entryHistoryPosition)
}
@@ -26,6 +26,7 @@ import com.kunzisoft.keepass.database.element.Entry
import com.kunzisoft.keepass.database.element.EntryId
import com.kunzisoft.keepass.hardware.HardwareKey
import com.kunzisoft.keepass.tasks.ActionRunnable
import com.kunzisoft.keepass.utils.AppUtil.getLimits
class RestoreEntryHistoryDatabaseRunnable (
private val context: Context,
@@ -47,6 +48,7 @@ class RestoreEntryHistoryDatabaseRunnable (
override fun onStartRun() {
try {
database.kdfEngine?.checkLimits(context.getLimits())
mMainEntry?.let { mainEntry ->
val historyToRestore = database.getEntryInfoFrom(
entry = mainEntry.getHistory()[entryHistoryPosition],
@@ -0,0 +1 @@
* Fix deleting history #2718
@@ -0,0 +1 @@
* Correction de la suppression de l'historique #2718