mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Code review: inline the error instead of using toast
This commit is contained in:
parent
85493b7532
commit
1b416028b4
1 changed files with 2 additions and 2 deletions
|
@ -789,9 +789,9 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
|
|||
}
|
||||
showPasswordLoadingView(false)
|
||||
if (failure.isInvalidPassword()) {
|
||||
activity.toast(R.string.settings_fail_to_update_password_invalid_current_password)
|
||||
oldPasswordTil.error = getString(R.string.settings_fail_to_update_password_invalid_current_password)
|
||||
} else {
|
||||
activity.toast(R.string.settings_fail_to_update_password)
|
||||
oldPasswordTil.error = getString(R.string.settings_fail_to_update_password)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue