Merge branch 'release/5.4.8' into main

This commit is contained in:
Rafał Kobyłko 2024-10-09 19:15:59 +02:00
commit 2725d5f426
3 changed files with 11 additions and 4 deletions

View File

@ -15,8 +15,8 @@ android {
defaultConfig {
applicationId = "com.twofasapp"
versionName = "5.4.7"
versionCode = 5000028
versionName = "5.4.8"
versionCode = 5000029
}
applicationVariants.all {

View File

@ -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,

View File

@ -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 = {