Skip to content

Commit bd223e3

Browse files
tiwizgithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent 6a553a6 commit bd223e3

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

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

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2024 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.example.compose.snippets.draganddrop
218

319
import android.content.ClipData
@@ -45,7 +61,8 @@ fun DragAndDropSnippet() {
4561
DragAndDropTransferData(
4662
ClipData.newPlainText(
4763
"image Url", url
48-
), flags = View.DRAG_FLAG_GLOBAL
64+
),
65+
flags = View.DRAG_FLAG_GLOBAL
4966
)
5067
)
5168
})
@@ -74,22 +91,22 @@ fun DragAndDropSnippet() {
7491
// [START android_compose_drag_and_drop_5]
7592
object : DragAndDropTarget {
7693
override fun onStarted(event: DragAndDropEvent) {
77-
//When the drag event starts
94+
// When the drag event starts
7895
}
7996

8097
override fun onEntered(event: DragAndDropEvent) {
81-
//When the dragged object enters the target surface
98+
// When the dragged object enters the target surface
8299
}
83100

84101
override fun onEnded(event: DragAndDropEvent) {
85-
//When the drag event stops
102+
// When the drag event stops
86103
}
87104

88105
override fun onExited(event: DragAndDropEvent) {
89-
//When the dragged object exits the target surface
106+
// When the dragged object exits the target surface
90107
}
91108

92109
override fun onDrop(event: DragAndDropEvent): Boolean = true
93110
}
94111
// [END android_compose_drag_and_drop_5]
95-
}
112+
}

0 commit comments

Comments
 (0)