Code review: inline the error instead of using toast

This commit is contained in:
Benoit Marty 2020-04-15 15:47:30 +02:00
parent 85493b7532
commit 1b416028b4

View file

@ -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)
}
}
})