diff --git a/vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsGeneralFragment.kt b/vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsGeneralFragment.kt index 87b27ce452..b778fa02ef 100644 --- a/vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsGeneralFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsGeneralFragment.kt @@ -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) } } })