mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Passphrase does not match (Export room keys) (Fixes #644)
This commit is contained in:
parent
7272343e6d
commit
361427488f
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue