Fix crash when entering wrong passphrase

This commit is contained in:
Benoit Marty 2020-05-04 17:30:13 +02:00
parent 0a8c954397
commit dc7b3dfc9d

View file

@ -51,7 +51,7 @@ class KeysBackupRestoreFromPassphraseViewModel @Inject constructor(
try {
sharedViewModel.recoverUsingBackupPass(passphrase.value!!)
} catch (failure: Throwable) {
passphraseErrorText.value = stringProvider.getString(R.string.keys_backup_passphrase_error_decrypt)
passphraseErrorText.postValue(stringProvider.getString(R.string.keys_backup_passphrase_error_decrypt))
}
}
}