Skip to content

Revert #36503: Weak event handling for Accelerometer events - #38096

Merged
kubaflo merged 1 commit into
dotnet:inflight/candidatefrom
HarishwaranVijayakumar:revert/36503-weak-event-manager
Sep 2, 2026
Merged

kubaflo merged 1 commit into
dotnet:inflight/candidatefrom
HarishwaranVijayakumar:revert/36503-weak-event-manager

Conversation

@HarishwaranVijayakumar

Copy link
Copy Markdown
Contributor

Description of Change

Reverts #36503 and restores standard .NET event handling for Accelerometer.ReadingChanged and ShakeDetected.

The custom weak event implementation introduced complex subscription semantics and caused the unsubscription regression tracked by #36574. A safer solution for the original memory-leak concern in #36216 can be considered separately.

Issues Fixed

Fixes #36574

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 2, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@HarishwaranVijayakumar! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 2, 2026
@github-actions github-actions Bot added the area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info label Sep 2, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review September 2, 2026 11:46
@sheiksyedm
sheiksyedm requested a review from kubaflo September 2, 2026 11:46
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo merged commit 5ce522e into dotnet:inflight/candidate Sep 2, 2026
43 checks passed
kubaflo pushed a commit that referenced this pull request Sep 3, 2026
### Description of Change

Reverts #36503 and restores standard .NET event handling for
`Accelerometer.ReadingChanged` and `ShakeDetected`.

The custom weak event implementation introduced complex subscription
semantics and caused the unsubscription regression tracked by #36574. A
safer solution for the original memory-leak concern in #36216 can be
considered separately.

### Issues Fixed

Fixes #36574
kubaflo pushed a commit that referenced this pull request Sep 4, 2026
### Description of Change

Reverts #36503 and restores standard .NET event handling for
`Accelerometer.ReadingChanged` and `ShakeDetected`.

The custom weak event implementation introduced complex subscription
semantics and caused the unsubscription regression tracked by #36574. A
safer solution for the original memory-leak concern in #36216 can be
considered separately.

### Issues Fixed

Fixes #36574
@kubaflo kubaflo mentioned this pull request Sep 6, 2026
5 of 8 tasks
kubaflo pushed a commit that referenced this pull request Sep 7, 2026
### Description of Change

Reverts #36503 and restores standard .NET event handling for
`Accelerometer.ReadingChanged` and `ShakeDetected`.

The custom weak event implementation introduced complex subscription
semantics and caused the unsubscription regression tracked by #36574. A
safer solution for the original memory-leak concern in #36216 can be
considered separately.

### Issues Fixed

Fixes #36574
kubaflo pushed a commit that referenced this pull request Sep 8, 2026
### Description of Change

Reverts #36503 and restores standard .NET event handling for
`Accelerometer.ReadingChanged` and `ShakeDetected`.

The custom weak event implementation introduced complex subscription
semantics and caused the unsubscription regression tracked by #36574. A
safer solution for the original memory-leak concern in #36216 can be
considered separately.

### Issues Fixed

Fixes #36574
kubaflo pushed a commit that referenced this pull request Sep 9, 2026
### Description of Change

Reverts #36503 and restores standard .NET event handling for
`Accelerometer.ReadingChanged` and `ShakeDetected`.

The custom weak event implementation introduced complex subscription
semantics and caused the unsubscription regression tracked by #36574. A
safer solution for the original memory-leak concern in #36216 can be
considered separately.

### Issues Fixed

Fixes #36574
kubaflo added a commit that referenced this pull request Sep 11, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

## What's Coming

This draft promotes the current `inflight/candidate` contents into
`main` for the .NET 10 SR11 (`10.0.110`) candidate cycle.

## Candidate Snapshot

- Initial source: `inflight/current`, followed by candidate-specific
stabilization and approved backports
- Rebased onto `main`:
[`b96aa036`](b96aa03)
- Current candidate head:
[`b643a7e3`](b643a7e)
- Final candidate commits relative to `main`: [111
commits](b96aa03...inflight/candidate)
- Rebase accounting: all 111 pre-rebase commits map exactly to 111
rebased commits, with no modified, dropped, or added patches
- Patch version: `110`
- PR #37033 remains intentionally excluded because it merged into
`inflight/current` after the initial candidate cut.

## Stabilization Since the Initial Cut

- #37669 fixes the MauiBlazorWebView device-test build.
- #37672 reverts unstable iOS and Mac Catalyst leak tests.
- #37810 reverts the iOS wrapped-scroll-content large-title change.
- #37837 completes iOS `ScrollView` requests inside collapsed branches.
- #37438 updates the first set of candidate test failures.
- #38021 fixes the Windows `ContentPresenter` device-test regression;
its patch is now supplied by `main`.
- #38096 reverts the Accelerometer weak-event change.
- #38126 backports the BlazorWebView and HybridWebView fixes.
- #38028 updates the remaining candidate test failures and stale iOS
snapshots.

## Rebase Validation

- [x] Commit accounting: 111 exact mappings with no modified, dropped,
or added patches
- [x] Independent reference merge and rebased branch have the identical
tree ID `3e10281363c889cbafd4de790911efb0ae365e2a`
- [x] BuildTasks succeeds with 0 warnings and 0 errors across the
restored Android, iOS, Mac Catalyst, and .NET targets
- [x] All 39 focused `ScrollViewUnitTests` pass
- [x] No merge commits, conflict markers, or new whitespace warnings;
the 26 existing whitespace warnings remain unchanged
- [ ] Post-rebase `maui-pr`, `maui-pr-devicetests`, and
`maui-pr-uitests` runs complete
- [ ] Candidate-only build and test failures triaged
- [ ] Release-readiness assessment completed

This PR remains a draft while candidate validation and stabilization
continue.

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@github-actions github-actions Bot added this to the .NET 10 SR11 milestone Sep 22, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 7d74139b Deployed Sep 2, 2026 by HarishwaranVijayakumar via conclusion #1685
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants