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 MountingOverrideDelegate initialization #6841

Conversation

bartlomiejbloniarz
Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz commented Dec 20, 2024

Summary

Currently we use the setMountingOverrideDelegate function to pass LayoutAnimationProxy to every surface, when we find out that a new surface was created. However, the setMountingOverrideDelegate function actually doesn't override the MountingOverrideDelegate - it stores all of them. This would lead to us processing the same transaction multiple times, so now we skip each already configured surface.

Test plan

@bartlomiejbloniarz bartlomiejbloniarz added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit 76ead7c Dec 20, 2024
17 checks passed
@bartlomiejbloniarz bartlomiejbloniarz deleted the @bartlomiejbloniarz/fix-mounting-override-delegate-init branch December 20, 2024 12:16
bartlomiejbloniarz added a commit that referenced this pull request Dec 20, 2024
## Summary

Currently we use the `setMountingOverrideDelegate` function to pass
`LayoutAnimationProxy` to every surface, when we find out that a new
surface was created. However, the `setMountingOverrideDelegate` function
actually doesn't override the `MountingOverrideDelegate` - it stores all
of them. This would lead to us processing the same transaction multiple
times, so now we skip each already configured surface.
## Test plan
bartlomiejbloniarz added a commit that referenced this pull request Dec 20, 2024
## Summary

Currently we use the `setMountingOverrideDelegate` function to pass
`LayoutAnimationProxy` to every surface, when we find out that a new
surface was created. However, the `setMountingOverrideDelegate` function
actually doesn't override the `MountingOverrideDelegate` - it stores all
of them. This would lead to us processing the same transaction multiple
times, so now we skip each already configured surface.
## Test plan
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