Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,20 @@ object EncryptAuthenticateDialog {
warningTextInputLayout,
btnOK,
) { text: String ->
if (text.isNotBlank() &&
text == comparingPasswordField.text.toString() &&
filenameIsValid(encryptSaveAsEditText.text.toString(), useAzeEncrypt)
) {
ReturnState()
} else if (text.isBlank()) {
ReturnState(STATE_ERROR, R.string.field_empty)
if (text.isNotBlank()) {
if (comparingPasswordField.text.toString().isBlank() ||
text == comparingPasswordField.text.toString()
) {
if (filenameIsValid(encryptSaveAsEditText.text.toString(), useAzeEncrypt)) {
ReturnState()
} else {
ReturnState(STATE_ERROR, R.string.empty_string)
}
} else {
ReturnState(STATE_ERROR, R.string.password_no_match)
}
} else {
ReturnState(STATE_ERROR, R.string.password_no_match)
ReturnState(STATE_ERROR, R.string.field_empty)
}
}

Expand Down
Loading