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 DatePicker on Android so that it can GC #8505

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Jul 3, 2022

Description of Change

Only subscribe to the display changed when control is connected to the window. Once it's removed from the window unsubscribe otherwise the handler will leak

Moved the allocation tests out to a separate collection of tests that's able to run as two parts. I found that if you leave the frame of the test and then check the allocation later the GC will have more opportunity to collect. This was needed to get the tests working on API 30 and WinUI.

@PureWeen PureWeen marked this pull request as ready for review July 3, 2022 22:57
@PureWeen PureWeen added the do-not-merge Don't merge this PR label Jul 3, 2022
@PureWeen PureWeen marked this pull request as draft July 3, 2022 23:25
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 5, 2022
@PureWeen PureWeen force-pushed the fix_datepicker_android_leak branch from 6ffd96e to 5610d54 Compare July 6, 2022 14:09
@PureWeen PureWeen force-pushed the fix_datepicker_android_leak branch from aaa222e to 42da4e3 Compare July 12, 2022 15:08
@PureWeen PureWeen marked this pull request as ready for review July 12, 2022 15:11
@PureWeen PureWeen removed the do-not-merge Don't merge this PR label Jul 12, 2022
@PureWeen PureWeen requested a review from mattleibow July 19, 2022 01:07
@PureWeen PureWeen merged commit 4c8e67b into net6.0 Jul 19, 2022
@PureWeen PureWeen deleted the fix_datepicker_android_leak branch July 19, 2022 13:49
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
@Eilon Eilon added area-controls-datetimepicker DatePicker, TimePicker and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels May 13, 2024
@samhouts samhouts added fixed-in-7.0.0-rc.1.6683 fixed-in-6.0.486 Look for this fix in 6.0.486 SR4! labels Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-datetimepicker DatePicker, TimePicker fixed-in-6.0.486 Look for this fix in 6.0.486 SR4! fixed-in-7.0.0-rc.1.6683
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants