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

[C] remove listener on changing MainPage #21616

Merged
merged 1 commit into from
Apr 3, 2024
Merged

[C] remove listener on changing MainPage #21616

merged 1 commit into from
Apr 3, 2024

Conversation

StephaneDelcroix
Copy link
Contributor

Description of Change

[C] remove listener on changing MainPage
avoid leaking

Issues Fixed

{
((IElementDefinition)this).RemoveResourcesChangedListener(MainPage.OnParentResourcesChanged);
}

_singleWindowMainPage = value;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is actually setting MainPage, so listener was never removed on the previous MainPage

@PureWeen
Copy link
Member

PureWeen commented Apr 3, 2024

@PureWeen
Copy link
Member

PureWeen commented Apr 3, 2024

Failing tests unrelated
https://dev.azure.com/xamarin/public/_build/results?buildId=112415&view=results

The main test this is targeting has been fixed.

@PureWeen PureWeen merged commit 7b27403 into main Apr 3, 2024
42 of 47 checks passed
@PureWeen PureWeen deleted the fix_21495 branch April 3, 2024 16:36
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugzilla44166 now failing after ThemeResourcesChange fix
5 participants