Skip to content

Toolbaritem keeps the icon of the previous page on Android, using NavigationPage (not shell) #31727

@johnzlmr

Description

@johnzlmr

Description

On Android, when navigating from page to page (Navigation.PushAsync(...)), icons of the previous page may persist on the new page. It doesn't happen all the time (debug and release mode).

I found these two previous issues related to ours :

Steps to Reproduce

I created a sample to reproduce this behaviors, link below. You can navigate from DashboardPage to TileTwoPage and go back multiple times if needed.

Other points :

  • Same thing if we keep only text in the ToolbarItems of the TileTwoPage : TileOnePage icons may persist
  • Changing the priority of the ToolbarItem does not change anything
  • Tried with .net10 but same behavior
  • Didn't try other platform

Here's a quick GIF to show what's going on :

Image

Let me know if i miss something

Link to public reproduction project repository

https://github.com/johnzlmr/MauiToolbarItemsIconsIssue

Version with bug

9.0.110 SR11

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

Android 14 & 15

Did you find any workaround?

No workaround yet.

Tried this one with no luck : #19673 (comment)

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-navigationNavigationPagepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions