Repository navigation
[Android] Fix SwipeItem.BackgroundColor does not reset to the default when set to null while open - #40477
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. No interpretable test-group summary was produced. No additional test execution is inferred. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
There was a problem hiding this comment.
Expert Review — 2 findings
Reviewed commit 542e4b7.
See inline comments for details.
1 findings could not be attached inline; retained in run artifacts.
5e262f7 to
700bf8b
Compare
|
/review expert-review-with-gate |
|
Warning Your |
|
/review run-tests |
Selected UI Tests
🧪 Test selection — click to expand❌ Could not queue maui-pr-uitests: GitHub has no test-merge commit for this PR head (it may have merge conflicts, or GitHub is still computing it). Resolve conflicts or retry GPT-6.2 Sol: The Android SwipeItem background reset fix and shared Issue40474 regression need SwipeView tests on Android, iOS, and Mac Catalyst. 🧪 Running — 1 category on Android, iOS, MacCatalyst
⏭️ Skipped — 76 categories, 1 platformPlatforms not run: Windows Categories not run: Each skipped platform and category is listed as a Skipped 🤖 Why these tests — AI rationale (GPT-6.2 Sol + Claude Opus 5.5)Each model chose independently; every test that runs was selected by at least one of them.
GPT-6.2 Sol — The Android SwipeItem background reset fix and shared Issue40474 regression need SwipeView tests on Android, iOS, and Mac Catalyst.
Claude Opus 5.5 — Android SwipeItemMenuItemHandler fix to reset BackgroundColor when set to null; runs SwipeView UI tests on Android, iOS and MacCatalyst.
Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification. |
700bf8b to
6b92622
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c9dfedb
into
dotnet:candidate/11.0.1xx-sr3
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 from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details:
Root Cause of the issue:
Description of Change
SwipeItemMenuItemHandler.Android.cs] Stores the original background drawable when the handler is connected and restores it when the SwipeItem's background is cleared, preserving the button's padding to avoid layout issues.New test cases for the issue:
Issue40474.cs(TestCases.HostApp): Adds a sample page that demonstrates the issue and provides buttons to open the swipe view, clear, and restore the background color of theSwipeItem.Issue40474.cs(TestCases.Shared.Tests): Adds a UI test that verifies the background color clears and restores correctly while the swipe action is open.Issues Fixed
Fixes #40474
Tested the behavior in the following platforms
Output
Beforefix-40474.mov
Afterfix-40474.mov