Skip to content

Fixed android toolbar icon change#20166

Closed
kubaflo wants to merge 6 commits into
dotnet:mainfrom
kubaflo:android-toolbar-icon-update-fix
Closed

Fixed android toolbar icon change#20166
kubaflo wants to merge 6 commits into
dotnet:mainfrom
kubaflo:android-toolbar-icon-update-fix

Conversation

@kubaflo

@kubaflo kubaflo commented Jan 26, 2024

Copy link
Copy Markdown
Contributor

Description of Change

Fixed android toolbar icon change on shell pages

Issues Fixed

Fixes #19673
Fixes #19950

Screen.Recording.2024-01-26.at.01.17.15.mov

@kubaflo kubaflo requested a review from a team as a code owner January 26, 2024 00:23
@ghost ghost added the community ✨ Community Contribution label Jan 26, 2024
@ghost

ghost commented Jan 26, 2024

Copy link
Copy Markdown

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz

Copy link
Copy Markdown
Contributor

Added UI Test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This snapshot must be updated with the one generated by CI.

.Wait(swipeSpeed)
.Press(startX, startY)
.MoveTo(endX, endY)
.Wait(swipeSpeed)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes in the order of the actions to avoid a DriverException: Method has not yet been implemented.

xmlns:ns="clr-namespace:Maui.Controls.Sample.Issues"
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
android:TabbedPage.ToolbarPlacement="Bottom">
<local:Issue19673Page1 Title="Page 1" AutomationId="Page1" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test based on the sample from #19673

@kubaflo kubaflo changed the title Fixed android toolbar icon change (#19673) Fixed android toolbar icon change Jan 28, 2024
@rmarinho

rmarinho commented Feb 1, 2024

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen

PureWeen commented Feb 5, 2024

Copy link
Copy Markdown
Member

Similar PR here #16796

@dustin-wojciechowski

Copy link
Copy Markdown
Contributor

It would be fantastic if we also had a UI Test that matched the example provided in the description, it could even be a second one that covers #19950, that is, different icons and text being displayed. As seen below, it looks like the test is checking if one icon set on one page is persisting across the others.

19673.webm

@kubaflo kubaflo force-pushed the android-toolbar-icon-update-fix branch from 0a31c4b to d603b16 Compare April 27, 2024 23:39
@kubaflo

kubaflo commented Apr 27, 2024

Copy link
Copy Markdown
Contributor Author

@dustin-wojciechowski I've added a Ui Test that covers the #19950 bug like you asked for :)

@PureWeen

PureWeen commented May 2, 2024

Copy link
Copy Markdown
Member

/rebase

@github-actions github-actions Bot force-pushed the android-toolbar-icon-update-fix branch from d603b16 to cb02b5b Compare May 2, 2024 18:33
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

Comment thread src/Controls/tests/UITests/Tests/Issues/Issue19950.cs Outdated
Comment thread src/Controls/tests/UITests/Tests/Issues/Issue19950.cs Outdated
Comment thread src/Controls/tests/UITests/Tests/Issues/Issue19673.cs Outdated
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis

Copy link
Copy Markdown
Member

/rebase

@jfversluis

Copy link
Copy Markdown
Member

@kubaflo @PureWeen do we still need this now we merged #16796?

@kubaflo

kubaflo commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

@jfversluis yes, I don't think we need it anymore. Therefore, I'm closing this pr :)

@kubaflo kubaflo closed this May 29, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

7 participants