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

[Adaptive] Fix technically incorrect usage of produceState #1547

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

alexvanyo
Copy link
Collaborator

The previously incorrect usage of produceState would capture the very first instance of windowLayoutInfo, and not cancel collecting and switch to a new one if it changed.

This probably couldn't ever actually happen in practice since it would require the Activity to change (and somehow not tear down the entire UI?) but for reference it would be good to do this correctly.

@alexvanyo alexvanyo merged commit 6c038c3 into main Mar 17, 2023
@alexvanyo alexvanyo deleted the av/calculate-display-features branch March 17, 2023 02:59
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.

None yet

2 participants