Skip to content

[Android] Fix for SearchHandler Placeholder did not update when changed at runtime #28636

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
Apr 3, 2025

Conversation

Tamilarasan-Paranthaman
Copy link
Contributor

Root Cause of the issue

  • The Placeholder was not being updated when changed at runtime.

Description of Change

  • I have implemented the necessary update to ensure the Placeholder is updated when changed at runtime.

Issues Fixed

Fixes #28634

Tested the behaviour in the following platforms

  • iOS
  • Android
  • Windows
  • Mac

Screenshot

Before Fix After Fix
Before-fix.mov
After-fix.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 26, 2025
Copy link
Contributor

Hey there @Tamilarasan-Paranthaman! 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 Mar 26, 2025
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman marked this pull request as ready for review March 26, 2025 14:24
@Copilot Copilot AI review requested due to automatic review settings March 26, 2025 14:24
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman requested a review from a team as a code owner March 26, 2025 14:24
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 addresses the issue where the SearchHandler's placeholder text was not updating at runtime on Android. Key changes include:

  • Adding a new test case in TestCases.Shared.Tests to verify the SearchHandler placeholder update.
  • Adding a corresponding UI test case in TestCases.HostApp.
  • Updating the Android SearchHandlerAppearanceTracker to handle changes in the Placeholder property.

Reviewed Changes

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

File Description
tests/TestCases.Shared.Tests/Tests/Issues/Issue28634.cs Added unit tests for SearchHandler placeholder update
tests/TestCases.HostApp/Issues/Issue28634.cs Added UI test page for triggering the SearchHandler placeholder change
src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs Updated to invoke UpdatePlaceholder when the Placeholder property changes

jfversluis
jfversluis previously approved these changes Mar 26, 2025
@jsuarezruiz jsuarezruiz added platform/android area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Mar 26, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current April 3, 2025 15:03
@PureWeen PureWeen merged commit 523a78a into dotnet:inflight/current Apr 3, 2025
121 of 128 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 8, 2025
…ed at runtime (#28636)

* Placeholder issue fix

* Added Android snapshot

* Added Mac and Windows snapshots
bhavanesh2001 pushed a commit to bhavanesh2001/maui that referenced this pull request Apr 11, 2025
…ed at runtime (dotnet#28636)

* Placeholder issue fix

* Added Android snapshot

* Added Mac and Windows snapshots
PureWeen pushed a commit that referenced this pull request Apr 11, 2025
…ed at runtime (#28636)

* Placeholder issue fix

* Added Android snapshot

* Added Mac and Windows snapshots
github-actions bot pushed a commit that referenced this pull request Apr 11, 2025
…ed at runtime (#28636)

* Placeholder issue fix

* Added Android snapshot

* Added Mac and Windows snapshots
github-actions bot pushed a commit that referenced this pull request Apr 14, 2025
…ed at runtime (#28636)

* Placeholder issue fix

* Added Android snapshot

* Added Mac and Windows snapshots
github-actions bot pushed a commit that referenced this pull request Apr 15, 2025
…ed at runtime (#28636)

* Placeholder issue fix

* Added Android snapshot

* Added Mac and Windows snapshots
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] SearchHandler Placeholder did not update when changed at runtime
4 participants