Skip to content

[Android] The number of SearchHandler toolbar item increases abnormally #29499

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

Open
SpaceTimee opened this issue May 14, 2025 · 4 comments · May be fixed by #29561
Open

[Android] The number of SearchHandler toolbar item increases abnormally #29499

SpaceTimee opened this issue May 14, 2025 · 4 comments · May be fixed by #29561
Assignees
Labels
i/regression This issue described a confirmed regression on a currently supported version p/0 Work that we can't release without platform/android regressed-in-9.0.70 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@SpaceTimee
Copy link

SpaceTimee commented May 14, 2025

Description

The number of SearchHandler toolbar item (normally should only one) will increase by one at the bottom when the software starts, and then increase by two each time navigating from other pages

This only occurs when Microsoft.Maui.Controls is 9.0.70

1d173f7c56376fd1853b192ee15f71b8.mp4

Steps to Reproduce

  1. Upgrade Microsoft.Maui.Controls to 9.0.70

  2. Add a SearchHandler to a ContentPage

<ContentPage>
    <Shell.SearchHandler>
        <handlers:MainSearchHandler SearchBoxVisibility="Collapsible" />
    </Shell.SearchHandler>
</ContentPage>

MainSearchHandler is a derived class of SearchHandler

internal class MainSearchHandler : SearchHandler { }
  1. Launch the app on Android

Link to public reproduction project repository

https://github.com/SpaceTimee/Maui-Issue-29499

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

9.0.61 SR6.1

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

net9.0-android35.0

Did you find any workaround?

No response

Relevant log output

@SpaceTimee SpaceTimee added the t/bug Something isn't working label May 14, 2025
@kubaflo kubaflo added the s/needs-repro Attach a solution or code which reproduces the issue label May 14, 2025
@SpaceTimee
Copy link
Author

The sample repo is here:

https://github.com/SpaceTimee/Maui-Issue-29499

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels May 15, 2025
@SyedAbdulAzeemSF4852
Copy link
Contributor

This issue has been verified in Visual Studio Code (1.100.1) with MAUI versions (9.0.70). It can be reproduced on Android platform. And it is not reproduced with MAUI version (9.0.61).

@karthikraja-arumugam karthikraja-arumugam added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed i/regression This issue described a confirmed regression on a currently supported version regressed-in-9.0.70 platform/android and removed s/needs-attention Issue has more information and needs another look labels May 15, 2025
@sheiksyedm
Copy link
Contributor

sheiksyedm commented May 15, 2025

Regression PR: #24993

@kubaflo, can you please look into this issue?

@kubaflo
Copy link
Contributor

kubaflo commented May 15, 2025

@sheiksyedm yes, I will fix it

@kubaflo kubaflo self-assigned this May 15, 2025
@PureWeen PureWeen added this to the .NET 9 SR8 milestone May 15, 2025
@PureWeen PureWeen added the p/0 Work that we can't release without label May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i/regression This issue described a confirmed regression on a currently supported version p/0 Work that we can't release without platform/android regressed-in-9.0.70 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

6 participants