Passphrase does not match (Export room keys) (Fixes #644)
This commit is contained in:
parent
7272343e6d
commit
361427488f
@ -11,7 +11,7 @@ Other changes:
|
||||
-
|
||||
|
||||
Bugfix 🐛:
|
||||
-
|
||||
- Passphrase does not match (Export room keys) (#644)
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
@ -44,15 +44,15 @@ class ExportKeysDialog {
|
||||
val textWatcher = object : SimpleTextWatcher() {
|
||||
override fun afterTextChanged(s: Editable) {
|
||||
when {
|
||||
passPhrase1EditText.text.isNullOrEmpty() -> {
|
||||
passPhrase1EditText.text.isNullOrEmpty() -> {
|
||||
exportButton.isEnabled = false
|
||||
passPhrase2Til.error = null
|
||||
}
|
||||
passPhrase1EditText.text == passPhrase2EditText.text -> {
|
||||
passPhrase1EditText.text.toString() == passPhrase2EditText.text.toString() -> {
|
||||
exportButton.isEnabled = true
|
||||
passPhrase2Til.error = null
|
||||
}
|
||||
else -> {
|
||||
else -> {
|
||||
exportButton.isEnabled = false
|
||||
passPhrase2Til.error = activity.getString(R.string.passphrase_passphrase_does_not_match)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user