File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
feature/creation/src/main/java/com/android/developers/androidify/creation Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -136,17 +136,16 @@ fun PhotoPrompt(
136136 MaterialTheme .colorScheme.outline,
137137 cornerRadius = 28 .dp,
138138 )
139- .apply {
140- if (externalAppCallback != null ) {
141- dragAndDropTarget(
142- shouldStartDragAndDrop = { event ->
143- dropBehaviourFactory.shouldStartDragAndDrop(
144- event,
145- )
146- },
147- target = externalAppCallback,
148- )
149- }
139+ .run {
140+ if (externalAppCallback == null ) this
141+ else dragAndDropTarget(
142+ shouldStartDragAndDrop = { event ->
143+ dropBehaviourFactory.shouldStartDragAndDrop(
144+ event,
145+ )
146+ },
147+ target = externalAppCallback,
148+ )
150149 }
151150 .fillMaxSize()
152151 .padding(2 .dp),
@@ -354,7 +353,8 @@ fun ImagePreviewPreview() {
354353 onUndoPressed = {},
355354 onChooseImagePressed = {},
356355 ) {
357- val bitmap = ImageBitmap .imageResource(com.android.developers.androidify.results.R .drawable.placeholderbot)
356+ val bitmap =
357+ ImageBitmap .imageResource(com.android.developers.androidify.results.R .drawable.placeholderbot)
358358 Image (bitmap = bitmap, contentDescription = null )
359359 }
360360 }
You can’t perform that action at this time.
0 commit comments