mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Code review: inline the error instead of using toast
This commit is contained in:
parent
85493b7532
commit
1b416028b4
@ -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 New Issue
Block a user