From 79792ab444c892f27ec91e81319c7c97bc914b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=C2=A0Koby=C5=82ko?= Date: Wed, 9 Oct 2024 19:10:56 +0200 Subject: [PATCH 1/2] Fix keyboard type for password fields --- .../twofasapp/designsystem/common/TwOutlinedTextField.kt | 8 +++++++- .../feature/home/ui/editservice/EditServiceScreen.kt | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/core/designsystem/src/main/java/com/twofasapp/designsystem/common/TwOutlinedTextField.kt b/core/designsystem/src/main/java/com/twofasapp/designsystem/common/TwOutlinedTextField.kt index d153bb66..a771b733 100644 --- a/core/designsystem/src/main/java/com/twofasapp/designsystem/common/TwOutlinedTextField.kt +++ b/core/designsystem/src/main/java/com/twofasapp/designsystem/common/TwOutlinedTextField.kt @@ -22,6 +22,8 @@ import androidx.compose.ui.graphics.Shape import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.TextRange import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.input.KeyboardCapitalization +import androidx.compose.ui.text.input.KeyboardType import androidx.compose.ui.text.input.PasswordVisualTransformation import androidx.compose.ui.text.input.TextFieldValue import androidx.compose.ui.text.input.VisualTransformation @@ -146,7 +148,11 @@ fun TwOutlinedTextFieldPassword( labelText = labelText, supportingText = supportingText, isError = isError, - keyboardOptions = keyboardOptions, + keyboardOptions = keyboardOptions.copy( + keyboardType = KeyboardType.Password, + capitalization = KeyboardCapitalization.None, + autoCorrect = false + ), keyboardActions = keyboardActions, singleLine = singleLine, maxLines = maxLines, diff --git a/feature/home/src/main/java/com/twofasapp/feature/home/ui/editservice/EditServiceScreen.kt b/feature/home/src/main/java/com/twofasapp/feature/home/ui/editservice/EditServiceScreen.kt index c9fefe6b..09ef7e01 100644 --- a/feature/home/src/main/java/com/twofasapp/feature/home/ui/editservice/EditServiceScreen.kt +++ b/feature/home/src/main/java/com/twofasapp/feature/home/ui/editservice/EditServiceScreen.kt @@ -158,7 +158,8 @@ internal fun EditServiceScreen( onValueChange = {}, keyboardOptions = KeyboardOptions.Default.copy( keyboardType = KeyboardType.Password, - capitalization = KeyboardCapitalization.None + capitalization = KeyboardCapitalization.None, + autoCorrect = false ), visualTransformation = if (isSecretVisible) VisualTransformation.None else PasswordVisualTransformation(), trailingIcon = { From 1f41115f67b69027978e5509ba46d45bbcefb1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=C2=A0Koby=C5=82ko?= Date: Wed, 9 Oct 2024 19:13:56 +0200 Subject: [PATCH 2/2] Bump version 5.4.8 (5000029) --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 40f16eaf..c51191ac 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -15,8 +15,8 @@ android { defaultConfig { applicationId = "com.twofasapp" - versionName = "5.4.7" - versionCode = 5000028 + versionName = "5.4.8" + versionCode = 5000029 } applicationVariants.all {