Skip to content

Conversation

@cartland
Copy link
Contributor

@cartland cartland commented Oct 23, 2025

Resolves an import ambiguity by specifying ComposeColor and AndroidColor type aliases in the Imagen snippets. This change also cleans up unused imports and alphabetizes the remaining ones.

These snippets use multiple "Color" classes so we need named imports to distinguish them. Here is the current documentation. I can't put region tags around the imports because Android Studio and Spotless will reorder the comments and break the inclusion regions. I think a comment is a reasonable solution to show the imports.

Screenshot 2025-10-23 at 11 59 30 AM Screenshot 2025-10-23 at 11 59 36 AM

Documentation page:

Resolves an import ambiguity by specifying `ComposeColor` and `AndroidColor` type aliases in the Imagen snippets. This change also cleans up unused imports and alphabetizes the remaining ones.
@cartland cartland requested a review from calren October 23, 2025 19:08
@cartland cartland merged commit 08d7f7e into main Oct 23, 2025
4 checks passed
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.

3 participants