Skip to content

[Testing] Fixed Test case failure in PR 33363 - [01/05/2026] Candidate - 1#33384

Merged
PureWeen merged 1 commit intodotnet:inflight/candidatefrom
TamilarasanSF4853:candidate-fix-1-33363
Jan 7, 2026
Merged

[Testing] Fixed Test case failure in PR 33363 - [01/05/2026] Candidate - 1#33384
PureWeen merged 1 commit intodotnet:inflight/candidatefrom
TamilarasanSF4853:candidate-fix-1-33363

Conversation

@TamilarasanSF4853
Copy link
Contributor

@TamilarasanSF4853 TamilarasanSF4853 commented Jan 6, 2026

This pull request refines the logic for setting the search icon color in the Android SearchView. This PR #33071 set the search icon color to transparent if no color was specified, which caused the search icon to become invisible and led to search bar-related test failures. Now, if no custom search icon color is provided, the icon will use the platform's default primary text color instead of becoming transparent.

Android SearchView icon color handling:

  • Updated UpdateSearchIconColor in SearchViewExtensions.cs to apply the default primary text color (TextColorPrimary) to the search icon when no custom color is set, instead of making it transparent.
Before fix After fix
Screen.Recording.2026-01-06.at.6.18.31.PM.mov
Screen.Recording.2026-01-06.at.6.25.09.PM.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 6, 2026
@dotnet-policy-service
Copy link
Contributor

Hey there @@TamilarasanSF4853! 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 Jan 6, 2026
@Ahamed-Ali Ahamed-Ali marked this pull request as ready for review January 6, 2026 12:19
Copy link
Contributor

@StephaneDelcroix StephaneDelcroix left a comment

Choose a reason for hiding this comment

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

✅ Approved

Validation Summary:

  • Tested on Android (Pixel 9 API 35 emulator)
  • All SearchBar scenarios validated:
    • Default SearchBar (no SearchIconColor): Icon visible with platform default color ✅
    • SearchBar with Red SearchIconColor: Red icon visible ✅
    • SearchBar with Blue SearchIconColor: Blue icon visible ✅
  • No crashes during rendering

Code Review:

  • Correct approach using TryGetDefaultStateColor with TextColorPrimary - consistent with UpdateCancelButtonColor pattern
  • Minimal, surgical change that only fixes the specific fallback behavior
  • Preserves the crash fix from PR #33071 by continuing to use SafeSetTint

The fix correctly addresses the regression where search icons became invisible when no custom SearchIconColor was set.

@PureWeen PureWeen merged commit d7bdad2 into dotnet:inflight/candidate Jan 7, 2026
23 checks passed
PureWeen pushed a commit that referenced this pull request Jan 9, 2026
…e - 1 (#33384)

This pull request refines the logic for setting the search icon color in
the Android `SearchView`. This PR
#33071 set the search icon color to
transparent if no color was specified, which caused the search icon to
become invisible and led to search bar-related test failures. Now, if no
custom search icon color is provided, the icon will use the platform's
default primary text color instead of becoming transparent.

**Android SearchView icon color handling:**

* Updated `UpdateSearchIconColor` in `SearchViewExtensions.cs` to apply
the default primary text color (`TextColorPrimary`) to the search icon
when no custom color is set, instead of making it transparent.

<table>
<tr>
<td>
Before fix
</td>
<td>
After fix
</td>
</tr>
<tr>
<td>




https://github.com/user-attachments/assets/22c5dc6f-2e8a-417d-89da-afaa422c9e15
</td>
<td>



https://github.com/user-attachments/assets/b4289eb2-7266-48a2-be12-eb0eabecb40f
</td>
</tr>
</table>
PureWeen pushed a commit that referenced this pull request Jan 9, 2026
…e - 1 (#33384)

This pull request refines the logic for setting the search icon color in
the Android `SearchView`. This PR
#33071 set the search icon color to
transparent if no color was specified, which caused the search icon to
become invisible and led to search bar-related test failures. Now, if no
custom search icon color is provided, the icon will use the platform's
default primary text color instead of becoming transparent.

**Android SearchView icon color handling:**

* Updated `UpdateSearchIconColor` in `SearchViewExtensions.cs` to apply
the default primary text color (`TextColorPrimary`) to the search icon
when no custom color is set, instead of making it transparent.

<table>
<tr>
<td>
Before fix
</td>
<td>
After fix
</td>
</tr>
<tr>
<td>




https://github.com/user-attachments/assets/22c5dc6f-2e8a-417d-89da-afaa422c9e15
</td>
<td>



https://github.com/user-attachments/assets/b4289eb2-7266-48a2-be12-eb0eabecb40f
</td>
</tr>
</table>
PureWeen pushed a commit that referenced this pull request Jan 13, 2026
…e - 1 (#33384)

This pull request refines the logic for setting the search icon color in
the Android `SearchView`. This PR
#33071 set the search icon color to
transparent if no color was specified, which caused the search icon to
become invisible and led to search bar-related test failures. Now, if no
custom search icon color is provided, the icon will use the platform's
default primary text color instead of becoming transparent.

**Android SearchView icon color handling:**

* Updated `UpdateSearchIconColor` in `SearchViewExtensions.cs` to apply
the default primary text color (`TextColorPrimary`) to the search icon
when no custom color is set, instead of making it transparent.

<table>
<tr>
<td>
Before fix
</td>
<td>
After fix
</td>
</tr>
<tr>
<td>




https://github.com/user-attachments/assets/22c5dc6f-2e8a-417d-89da-afaa422c9e15
</td>
<td>



https://github.com/user-attachments/assets/b4289eb2-7266-48a2-be12-eb0eabecb40f
</td>
</tr>
</table>
PureWeen pushed a commit that referenced this pull request Jan 13, 2026
…e - 1 (#33384)

This pull request refines the logic for setting the search icon color in
the Android `SearchView`. This PR
#33071 set the search icon color to
transparent if no color was specified, which caused the search icon to
become invisible and led to search bar-related test failures. Now, if no
custom search icon color is provided, the icon will use the platform's
default primary text color instead of becoming transparent.

**Android SearchView icon color handling:**

* Updated `UpdateSearchIconColor` in `SearchViewExtensions.cs` to apply
the default primary text color (`TextColorPrimary`) to the search icon
when no custom color is set, instead of making it transparent.

<table>
<tr>
<td>
Before fix
</td>
<td>
After fix
</td>
</tr>
<tr>
<td>




https://github.com/user-attachments/assets/22c5dc6f-2e8a-417d-89da-afaa422c9e15
</td>
<td>



https://github.com/user-attachments/assets/b4289eb2-7266-48a2-be12-eb0eabecb40f
</td>
</tr>
</table>
kubaflo pushed a commit to kubaflo/maui that referenced this pull request Jan 16, 2026
…e - 1 (dotnet#33384)

This pull request refines the logic for setting the search icon color in
the Android `SearchView`. This PR
dotnet#33071 set the search icon color to
transparent if no color was specified, which caused the search icon to
become invisible and led to search bar-related test failures. Now, if no
custom search icon color is provided, the icon will use the platform's
default primary text color instead of becoming transparent.

**Android SearchView icon color handling:**

* Updated `UpdateSearchIconColor` in `SearchViewExtensions.cs` to apply
the default primary text color (`TextColorPrimary`) to the search icon
when no custom color is set, instead of making it transparent.

<table>
<tr>
<td>
Before fix
</td>
<td>
After fix
</td>
</tr>
<tr>
<td>




https://github.com/user-attachments/assets/22c5dc6f-2e8a-417d-89da-afaa422c9e15
</td>
<td>



https://github.com/user-attachments/assets/b4289eb2-7266-48a2-be12-eb0eabecb40f
</td>
</tr>
</table>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-searchbar SearchBar control 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.

4 participants