Skip to content

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

@SpaceTimee

Description

@SpaceTimee

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

Metadata

Metadata

Assignees

Labels

i/regressionThis issue described a confirmed regression on a currently supported versionp/0Work that we can't release withoutplatform/androidregressed-in-9.0.70s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions