mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
Prevent racing double commits on password creation (#1047)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
(cherry picked from commit 2c8999c1bf
)
This commit is contained in:
committed by
Harsh Shandilya
parent
c4588b9dbf
commit
a29414fce6
@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.11.2] - 2020-08-24
|
||||
|
||||
### Fixed
|
||||
|
||||
- Saving a password after creating it fails to finish commit operation
|
||||
|
||||
## [1.11.1] - 2020-08-21
|
||||
|
||||
### Fixed
|
||||
|
@@ -426,6 +426,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
|
||||
returnIntent.putExtra(RETURN_EXTRA_USERNAME, username)
|
||||
}
|
||||
|
||||
if (editing) {
|
||||
lifecycleScope.launch {
|
||||
commitChange(
|
||||
getString(
|
||||
@@ -434,6 +435,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (directoryInputLayout.isVisible && directoryInputLayout.isEnabled && oldFileName != null) {
|
||||
val oldFile = File("$repoPath/${oldCategory?.trim('/')}/$oldFileName.gpg")
|
||||
|
Reference in New Issue
Block a user