Skip to content

Commit 3a6763f

Browse files
riggaroogithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent 774667f commit 3a6763f

File tree

1 file changed

+9
-12
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/text

1 file changed

+9
-12
lines changed

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package com.example.compose.snippets.text
2020

2121
import android.graphics.Typeface
22-
import android.provider.ContactsContract.CommonDataKinds.Email
2322
import androidx.compose.foundation.BorderStroke
2423
import androidx.compose.foundation.background
2524
import androidx.compose.foundation.basicMarquee
@@ -29,15 +28,13 @@ import androidx.compose.foundation.layout.Arrangement
2928
import androidx.compose.foundation.layout.Box
3029
import androidx.compose.foundation.layout.Column
3130
import androidx.compose.foundation.layout.Row
32-
import androidx.compose.foundation.layout.Spacer
3331
import androidx.compose.foundation.layout.fillMaxWidth
3432
import androidx.compose.foundation.layout.padding
3533
import androidx.compose.foundation.layout.requiredSize
3634
import androidx.compose.foundation.layout.width
3735
import androidx.compose.foundation.shape.RoundedCornerShape
3836
import androidx.compose.foundation.text.BasicSecureTextField
3937
import androidx.compose.foundation.text.KeyboardOptions
40-
import androidx.compose.foundation.text.input.TextFieldDecorator
4138
import androidx.compose.foundation.text.input.TextFieldState
4239
import androidx.compose.foundation.text.input.TextObfuscationMode
4340
import androidx.compose.foundation.text.selection.DisableSelection
@@ -50,7 +47,6 @@ import androidx.compose.material3.LocalTextStyle
5047
import androidx.compose.material3.MaterialTheme
5148
import androidx.compose.material3.OutlinedTextField
5249
import androidx.compose.material3.Text
53-
import androidx.compose.material3.TextButton
5450
import androidx.compose.material3.TextField
5551
import androidx.compose.runtime.Composable
5652
import androidx.compose.runtime.derivedStateOf
@@ -650,9 +646,9 @@ private fun TextSample(samples: Map<String, @Composable () -> Unit>) {
650646

651647
private const val SAMPLE_LONG_TEXT =
652648
"Jetpack Compose is Android’s modern toolkit for building native UI. " +
653-
"It simplifies and accelerates UI development on Android bringing your apps " +
654-
"to life with less code, powerful tools, and intuitive Kotlin APIs. " +
655-
"It makes building Android UI faster and easier."
649+
"It simplifies and accelerates UI development on Android bringing your apps " +
650+
"to life with less code, powerful tools, and intuitive Kotlin APIs. " +
651+
"It makes building Android UI faster and easier."
656652

657653
@Composable
658654
@Preview
@@ -889,9 +885,11 @@ fun PasswordTextField() {
889885
.padding(6.dp),
890886
decorator = { innerTextField ->
891887
Box(modifier = Modifier.fillMaxWidth()) {
892-
Box(modifier = Modifier
893-
.align(Alignment.CenterStart)
894-
.padding(start = 16.dp,end = 48.dp)) {
888+
Box(
889+
modifier = Modifier
890+
.align(Alignment.CenterStart)
891+
.padding(start = 16.dp, end = 48.dp)
892+
) {
895893
innerTextField()
896894
}
897895
Icon(
@@ -912,7 +910,6 @@ fun PasswordTextField() {
912910
}
913911
// [END android_compose_text_auto_format_phone_number_showhidepassword]
914912

915-
916913
// [START android_compose_text_auto_format_phone_number_validatetext]
917914
class EmailViewModel : ViewModel() {
918915
var email by mutableStateOf("")
@@ -964,4 +961,4 @@ fun ValidateInput() {
964961
validatorHasErrors = emailViewModel.emailHasErrors
965962
)
966963
}
967-
// [END android_compose_text_auto_format_phone_number_validatetext]
964+
// [END android_compose_text_auto_format_phone_number_validatetext]

0 commit comments

Comments
 (0)