Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Compose Previews in the Reply sample #1358

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

amaurymedeiros
Copy link
Contributor

Currenly, Compose Previews don't support UIModeManager, so any previews using the ContrastAwareReplyTheme will fail to render when trying to apply contrast. While UIModeManager support is not added, we can work around this issue by not adding contrast in Compose Previews.

@amaurymedeiros amaurymedeiros requested a review from a team as a code owner April 24, 2024 11:18
@jwill
Copy link
Contributor

jwill commented Apr 24, 2024

Temp fix LGTM and is in the spirit of the original code I wrote.
(Am not an official repo owner but hoping to speed up the process for whoever reviews this PR.)

@bentrengrove
Copy link
Member

Needs a rebase on top of #1364 I think

@arriolac
Copy link
Contributor

Just merged #1364. Feel free to rebase against main instead to resolve the failed actions.

Currenly, Compose Previews don't support UIModeManager, so any previews
using the ContrastAwareReplyTheme will fail to render when trying to
apply contrast. While UIModeManager support is not added, we can work
around this issue by not adding contrast in Compose Previews.
@amaurymedeiros
Copy link
Contributor Author

Rebase is done and checks have passed.

@arriolac arriolac merged commit ff21481 into android:main Apr 26, 2024
6 checks passed
@amaurymedeiros amaurymedeiros deleted the reply-fix-previews branch April 29, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants