We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc8ac2c + ce43e38 commit 4febc35Copy full SHA for 4febc35
compose/snippets/src/main/java/com/example/compose/snippets/text/TextSnippets.kt
@@ -812,7 +812,7 @@ class NanpVisualTransformation() : VisualTransformation {
812
813
override fun originalToTransformed(offset: Int): Int =
814
when (offset) {
815
- 0 -> offset
+ 0 -> offset
816
// Add 1 for opening parenthesis.
817
in 1..3 -> offset + 1
818
// Add 3 for both parentheses and a space.
@@ -831,7 +831,6 @@ class NanpVisualTransformation() : VisualTransformation {
831
// Subtract 4 for both parentheses, space, and hyphen.
832
else -> offset - 4
833
}
834
-
835
836
837
// [END android_compose_text_auto_format_phone-number_transformtext]
0 commit comments