We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55863ae commit dc2d4b6Copy full SHA for dc2d4b6
app/src/main/kotlin/com/wire/android/ui/common/textfield/InputTransformations.kt
@@ -90,7 +90,11 @@ fun InputTransformation.forceLowercase(): InputTransformation =
90
91
class ForceLowercaseTransformation : InputTransformation {
92
override fun TextFieldBuffer.transformInput() {
93
- replace(0, length, asCharSequence().toString().lowercase())
+ val currentText = asCharSequence().toString()
94
+ val lowercasedText = currentText.lowercase()
95
+ if (currentText != lowercasedText) {
96
+ replace(0, length, lowercasedText)
97
+ }
98
}
99
100
0 commit comments