Skip to content

Revert "[Android, iOS] Dynamically setting SearchHandler Query property does not update text in the search box (#28400)" #30222

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

Merged
merged 3 commits into from
Jun 27, 2025

Conversation

PureWeen
Copy link
Member

Description of Change

This PR reverts #29497

The changes that will need to be made to fix this properly I think are too substantial to be include in a backport fix so we are going to revert this for now and try to get a more proper fix for SR9 (though it might slip to SR10)

Issues Fixed

Fixes #30072

@Copilot Copilot AI review requested due to automatic review settings June 25, 2025 21:21
@PureWeen PureWeen requested a review from a team as a code owner June 25, 2025 21:21
@PureWeen
Copy link
Member Author

/backport to main

Copy link
Contributor

@Copilot 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 reverts the changes introduced in PR 29497 that attempted to update the SearchHandler’s Query-dependent text dynamically. The key changes include removing tests for Issue14497 and reverting the Query update logic in the iOS and Android SearchHandlerAppearanceTracker implementations.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue14497.cs Removed tests for the dynamic query update issue
src/Controls/tests/TestCases.HostApp/Issues/Issue14497.cs Removed host app test for the dynamic query update issue
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/SearchHandlerAppearanceTracker.cs Removed query update code in the iOS appearance tracker
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs Removed query update code in the Android appearance tracker
Comments suppressed due to low confidence (4)

src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/SearchHandlerAppearanceTracker.cs:113

  • The removal of the QueryProperty check and its associated UpdateText method reverts the behavior for iOS; please double-check that this change aligns with the intended user experience and that any dependent code is adjusted accordingly.
			}

src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs:89

  • The removal of the query update block and the UpdateText method in the Android tracker reverts previous functionality; please verify that this change fully restores the earlier behavior expected by users.
			}

Copy link
Contributor

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

@PureWeen
Copy link
Member Author

/azp run

Copy link

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

@PureWeen
Copy link
Member Author

/azp run

Copy link

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

@PureWeen
Copy link
Member Author

/backport to main

Copy link
Contributor

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

mattleibow
mattleibow previously approved these changes Jun 26, 2025
jsuarezruiz
jsuarezruiz previously approved these changes Jun 27, 2025
@PureWeen PureWeen dismissed stale reviews from jsuarezruiz and mattleibow via 4e7e717 June 27, 2025 12:04
@PureWeen
Copy link
Member Author

/backport to main

Copy link
Contributor

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

@PureWeen
Copy link
Member Author

/rebase

PureWeen added 3 commits June 27, 2025 13:20
…ty does not update text in the search box (#28400)"

This reverts commit 559da79.

# Conflicts:
#	src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs
#	src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/SearchHandlerAppearanceTracker.cs
#	src/Controls/tests/TestCases.HostApp/Issues/Issue14497.cs
#	src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue14497.cs
…rty (#29497)"

This reverts commit 9827339.

# Conflicts:
#	src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs
#	src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/SearchHandlerAppearanceTracker.cs
#	src/Controls/tests/TestCases.HostApp/Issues/Issue29492.cs
#	src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29492.cs
@PureWeen
Copy link
Member Author

/azp run

Copy link

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

@PureWeen PureWeen merged commit 89a7c6b into release/9.0.1xx-sr8 Jun 27, 2025
5 of 7 checks passed
@PureWeen PureWeen deleted the revert_28400 branch June 27, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants