Skip to content

Commit a37e651

Browse files
tiwizRob Orgiu
andauthored
Add comment to clarify that both callbacks can be used (#548)
* Add comment to clarify that both callbacks can be used * Apply Spotless --------- Co-authored-by: Rob Orgiu <[email protected]> Co-authored-by: tiwiz <[email protected]>
1 parent 3fbcdcb commit a37e651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private fun DragAndDropSnippet() {
9393
Modifier.dragAndDropTarget(
9494
shouldStartDragAndDrop = { event ->
9595
event.mimeTypes().contains(ClipDescription.MIMETYPE_TEXT_PLAIN)
96-
}, target = callback
96+
}, target = callback // or externalAppCallback
9797
)
9898
// [END android_compose_drag_and_drop_5]
9999

0 commit comments

Comments
 (0)