From f54557e59d8420201366e80daf3c86e655cfbcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolf-Martell=20Montw=C3=A9?= Date: Wed, 27 Sep 2023 17:38:28 +0200 Subject: [PATCH] Change consumers as the new default is to not reveal the password --- .../server/settings/ui/incoming/IncomingServerSettingsContent.kt | 1 + .../server/settings/ui/outgoing/OutgoingServerSettingsContent.kt | 1 + .../feature/account/setup/ui/autodiscovery/item/PasswordItem.kt | 1 + 3 files changed, 3 insertions(+) diff --git a/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/incoming/IncomingServerSettingsContent.kt b/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/incoming/IncomingServerSettingsContent.kt index 447e6beb404..50568a61f12 100644 --- a/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/incoming/IncomingServerSettingsContent.kt +++ b/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/incoming/IncomingServerSettingsContent.kt @@ -130,6 +130,7 @@ internal fun IncomingServerSettingsContent( password = state.password.value, errorMessage = state.password.error?.toResourceString(resources), onPasswordChange = { onEvent(Event.PasswordChanged(it)) }, + checkRevealPasswordPermission = { true }, contentPadding = defaultItemPadding(), ) } diff --git a/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/outgoing/OutgoingServerSettingsContent.kt b/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/outgoing/OutgoingServerSettingsContent.kt index 61a07cc54a6..c23694f03a7 100644 --- a/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/outgoing/OutgoingServerSettingsContent.kt +++ b/feature/account/server/settings/src/main/kotlin/app/k9mail/feature/account/server/settings/ui/outgoing/OutgoingServerSettingsContent.kt @@ -124,6 +124,7 @@ internal fun OutgoingServerSettingsContent( password = state.password.value, errorMessage = state.password.error?.toResourceString(resources), onPasswordChange = { onEvent(Event.PasswordChanged(it)) }, + checkRevealPasswordPermission = { true }, isRequired = true, contentPadding = defaultItemPadding(), ) diff --git a/feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/ui/autodiscovery/item/PasswordItem.kt b/feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/ui/autodiscovery/item/PasswordItem.kt index 2b5447989cf..8358aecbc71 100644 --- a/feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/ui/autodiscovery/item/PasswordItem.kt +++ b/feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/ui/autodiscovery/item/PasswordItem.kt @@ -26,6 +26,7 @@ internal fun LazyItemScope.PasswordItem( password = password, errorMessage = error?.toResourceString(resources), onPasswordChange = onPasswordChange, + checkRevealPasswordPermission = { true }, contentPadding = PaddingValues(), ) }