Prevent racing double commits on password creation (#1047)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
06497f1db0
commit
2c8999c1bf
2 changed files with 9 additions and 6 deletions
|
@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Password creation UI will scroll if it does not fit on the screen
|
- Password creation UI will scroll if it does not fit on the screen
|
||||||
|
- Saving a password after creating it fails to finish commit operation
|
||||||
|
|
||||||
## [1.11.1] - 2020-08-21
|
## [1.11.1] - 2020-08-21
|
||||||
|
|
||||||
|
|
|
@ -440,13 +440,15 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
|
||||||
returnIntent.putExtra(RETURN_EXTRA_USERNAME, username)
|
returnIntent.putExtra(RETURN_EXTRA_USERNAME, username)
|
||||||
}
|
}
|
||||||
|
|
||||||
lifecycleScope.launch {
|
if (editing) {
|
||||||
commitChange(
|
lifecycleScope.launch {
|
||||||
getString(
|
commitChange(
|
||||||
R.string.git_commit_edit_text,
|
getString(
|
||||||
getLongName(fullPath, repoPath, editName)
|
R.string.git_commit_edit_text,
|
||||||
|
getLongName(fullPath, repoPath, editName)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (directoryInputLayout.isVisible && directoryInputLayout.isEnabled && oldFileName != null) {
|
if (directoryInputLayout.isVisible && directoryInputLayout.isEnabled && oldFileName != null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue