Skip to content

Conversation

@PureWeen
Copy link
Member

Description of Change

#28077 changed the ordering of some property mappers which revealed some scenarios where the order was hiding other bugs. For example, in this scenario if the user were to replace the content of the RefreshView that would cause it to become re-enabled.

Issues Fixed

Fixes #28343

Copilot AI review requested due to automatic review settings March 12, 2025 18:26
@PureWeen PureWeen requested a review from a team as a code owner March 12, 2025 18:26
@PureWeen PureWeen requested review from jfversluis and rmarinho and removed request for a team March 12, 2025 18:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an issue where replacing the content of the RefreshView on iOS inadvertently re-enables the progress spinner by adding additional checks and test coverage.

  • Added a new test page in TestCases.HostApp to simulate replacing the RefreshView content
  • Introduced corresponding automated tests in TestCases.Shared.Tests
  • Updated the iOS MauiRefreshView to conditionally insert the refresh control based on its Enabled state

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

File Description
src/Controls/tests/TestCases.HostApp/Issues/Issue28343.cs Added a test page to simulate RefreshView content replacement
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28343.cs Added automated tests to verify the refresh spinner state
src/Core/src/Platform/iOS/MauiRefreshView.cs Updated TryInsertRefresh to check if the refresh control is enabled

@rmarinho
Copy link
Member

So what calls TryInsertRefresh later when IsEnabled ?

@PureWeen
Copy link
Member Author

So what calls TryInsertRefresh later when IsEnabled ?

MapIsEnabled triggers TryInsertRefresh

image

Which is also validated by the following test
https://github.com/dotnet/maui/pull/28360/files#diff-bec9876fa1af8b72f5fc7c66b105bb3c9d66a55205bb4ffe985e0efedc49540cR45-R50

@PureWeen
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@PureWeen
Copy link
Member Author

/backport to main

@rmarinho
Copy link
Member

/backport to main

@github-actions
Copy link
Contributor

Started backporting to main: https://github.com/dotnet/maui/actions/runs/13822921226

@rmarinho rmarinho self-requested a review March 12, 2025 22:40
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 12, 2025
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 12, 2025
@dotnet dotnet deleted a comment from PureWeen Mar 12, 2025
@dotnet dotnet deleted a comment from github-actions bot Mar 12, 2025
@PureWeen PureWeen merged commit 9705d5c into release/9.0.1xx-sr5 Mar 13, 2025
5 of 7 checks passed
@PureWeen PureWeen deleted the fix_28343 branch March 13, 2025 02:50
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants