mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-27 04:16:42 -08:00
fix: Deleting history #2718
This commit is contained in:
7 files changed
+12
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
},
|
||||
|
||||
+2
@@ -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)
|
||||
}
|
||||
|
||||
+2
@@ -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
|
||||
Reference in new issue
Block a user