Skip to content

Commit 77bd621

Browse files
committed
Update AutofillSnippets.kt
spacing
1 parent 8927d2d commit 77bd621

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ fun SaveDataWithAutofillOnClick() {
112112
value = textFieldValue.value,
113113
onValueChange = { textFieldValue.value = it },
114114
modifier =
115-
Modifier.semantics {
116-
contentType = ContentType.NewUsername
117-
},
115+
Modifier.semantics { contentType = ContentType.NewUsername },
118116
)
119117

120118
Spacer(modifier = Modifier.height(16.dp))
@@ -123,9 +121,7 @@ fun SaveDataWithAutofillOnClick() {
123121
value = textFieldValue.value,
124122
onValueChange = { textFieldValue.value = it },
125123
modifier =
126-
Modifier.semantics {
127-
contentType = ContentType.NewPassword
128-
},
124+
Modifier.semantics { contentType = ContentType.NewPassword },
129125
)
130126

131127
// Submit button
@@ -146,9 +142,7 @@ fun CustomAutofillHighlight(customHighlightColor: Color = Color.Red) {
146142
TextField(
147143
value = textFieldValue.value,
148144
onValueChange = { textFieldValue.value = it },
149-
modifier = Modifier.semantics {
150-
contentType = ContentType.Username
151-
}
145+
modifier = Modifier.semantics { contentType = ContentType.Username }
152146
)
153147
}
154148
// [END android_compose_autofill_6]

0 commit comments

Comments
 (0)