mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +00:00
Prevent racing double commits on password creation (#1047)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev> (cherry picked from commit 2c8999c1bff1c82b047e7111d47c539fc6207336)
This commit is contained in:
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,13 +426,15 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
|
||||
returnIntent.putExtra(RETURN_EXTRA_USERNAME, username)
|
||||
}
|
||||
|
||||
lifecycleScope.launch {
|
||||
commitChange(
|
||||
getString(
|
||||
R.string.git_commit_edit_text,
|
||||
getLongName(fullPath, repoPath, editName)
|
||||
if (editing) {
|
||||
lifecycleScope.launch {
|
||||
commitChange(
|
||||
getString(
|
||||
R.string.git_commit_edit_text,
|
||||
getLongName(fullPath, repoPath, editName)
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (directoryInputLayout.isVisible && directoryInputLayout.isEnabled && oldFileName != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user