Skip to content

Commit b50ebf5

Browse files
MagicalMeghangithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent 4266212 commit b50ebf5

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/draganddrop/DragAndDropSnippets.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import androidx.annotation.RequiresApi
2424
import androidx.compose.foundation.ExperimentalFoundationApi
2525
import androidx.compose.foundation.draganddrop.dragAndDropSource
2626
import androidx.compose.foundation.draganddrop.dragAndDropTarget
27-
import androidx.compose.foundation.gestures.detectTapGestures
2827
import androidx.compose.runtime.Composable
2928
import androidx.compose.runtime.remember
3029
import androidx.compose.ui.Modifier
@@ -51,7 +50,8 @@ private fun DragAndDropSnippet() {
5150
Modifier.dragAndDropSource { _ ->
5251
DragAndDropTransferData(
5352
ClipData.newPlainText(
54-
"image Url", url)
53+
"image Url", url
54+
)
5555
)
5656
}
5757
// [END android_compose_drag_and_drop_2]

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import androidx.compose.foundation.layout.height
2222
import androidx.compose.foundation.text.BasicTextField
2323
import androidx.compose.foundation.text.LocalAutofillHighlightColor
2424
import androidx.compose.foundation.text.input.TextFieldState
25-
import androidx.compose.material.TextField
26-
import androidx.compose.material3.Surface
2725
import androidx.compose.material3.Text
2826
import androidx.compose.runtime.Composable
2927
import androidx.compose.runtime.CompositionLocalProvider
@@ -32,21 +30,14 @@ import androidx.compose.ui.Modifier
3230
import androidx.compose.ui.autofill.ContentType
3331
import androidx.compose.ui.graphics.Color
3432
import androidx.compose.ui.platform.LocalAutofillManager
35-
import androidx.compose.ui.platform.testTag
36-
import androidx.compose.ui.semantics.SemanticsProperties
37-
import androidx.compose.ui.semantics.SemanticsProperties.TestTag
3833
import androidx.compose.ui.semantics.contentType
3934
import androidx.compose.ui.semantics.semantics
40-
import androidx.compose.ui.test.SemanticsMatcher
41-
import androidx.compose.ui.test.assert
4235
import androidx.compose.ui.test.junit4.createComposeRule
43-
import androidx.compose.ui.test.onNodeWithTag
4436
import androidx.compose.ui.unit.dp
4537
import com.example.compose.snippets.touchinput.Button
4638
import org.junit.Rule
4739
import org.testng.annotations.Test
4840

49-
5041
@Composable
5142
fun AddAutofill() {
5243
// [START android_compose_autofill_1]
@@ -156,7 +147,7 @@ fun customizeAutofillHighlight() {
156147
@get:Rule
157148
val rule = createComposeRule()
158149
@Test
159-
fun autofillHintTest(): Unit {
150+
fun autofillHintTest() {
160151
val autofillHintString = "test autofill string"
161152
val TestTag = "semantics-test-tag"
162153

0 commit comments

Comments
 (0)