File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/text Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments