Skip to content

Conversation

@tiwiz
Copy link
Contributor

@tiwiz tiwiz commented Jun 17, 2025

No description provided.

@snippet-bot
Copy link

snippet-bot bot commented Jun 17, 2025

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@tiwiz tiwiz requested a review from JolandaVerhoef June 17, 2025 16:02
}
// [END android_compose_drag_and_drop_4]

val activity = LocalActivity.current
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using LocalActivity.current?.let { activity -> so you have a non-null activity

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be clear, since it's outside the scope of the snippet?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's okay. If people see you use activity they will know they need to get an activity from somewhere.

@tiwiz tiwiz merged commit d0ef8d0 into main Jun 18, 2025
4 checks passed
@tiwiz tiwiz deleted the ro/dnd-external-apps branch June 18, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants