Skip to content

Commit 4febc35

Browse files
committed
Merge remote-tracking branch 'origin/auto-format-phone-number' into auto-format-phone-number
2 parents cc8ac2c + ce43e38 commit 4febc35

File tree

1 file changed

+1
-2
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/text

1 file changed

+1
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/text/TextSnippets.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ class NanpVisualTransformation() : VisualTransformation {
812812

813813
override fun originalToTransformed(offset: Int): Int =
814814
when (offset) {
815-
0 -> offset
815+
0 -> offset
816816
// Add 1 for opening parenthesis.
817817
in 1..3 -> offset + 1
818818
// Add 3 for both parentheses and a space.
@@ -831,7 +831,6 @@ class NanpVisualTransformation() : VisualTransformation {
831831
// Subtract 4 for both parentheses, space, and hyphen.
832832
else -> offset - 4
833833
}
834-
835834
}
836835
}
837836
// [END android_compose_text_auto_format_phone-number_transformtext]

0 commit comments

Comments
 (0)