Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void Issue892TestsNavigateChangePagesNavigate()
App.Tap("Present Flyout");
App.Tap(Page5);

#if ANDROID || WINDOWS // IsPresented value not reflected when changing on ItemTapped in FlyoutPage More Information: https://github.com/dotnet/maui/issues/26324.
#if WINDOWS // IsPresented value not reflected when changing on ItemTapped in FlyoutPage.
App.WaitForElementTillPageNavigationSettled(Page5);
App.TapInFlyoutPageFlyout("Close Flyout");
#else
Expand All @@ -42,10 +42,10 @@ public void Issue892TestsNavigateChangePagesNavigate()

void NavigateToEndAndBack(string BackButtonId)
{
App.WaitForElement("Push next page");
App.WaitForElement("Push next page");
App.Tap("Push next page");
App.WaitForElement("Push next next page");
App.Tap("Push next next page");
App.WaitForElement("Push next next page");
App.Tap("Push next next page");
App.WaitForElement("You are at the end of the line");
App.Tap("Check back one");
App.WaitForElement("Pop one");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if TEST_FAILS_ON_ANDROID // IsPresented value is not reflected when change this on list view item tapped in flyout. Issue: https://github.com/dotnet/maui/issues/26324
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand Down Expand Up @@ -37,4 +36,3 @@ public void Issue973TestsTabResetAfterDetailSwap()
App.WaitForElement("Page 4 Right aligned");
}
}
#endif
2 changes: 0 additions & 2 deletions src/Core/src/Handlers/FlyoutView/FlyoutViewHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ void LayoutAsFlyout()
DrawerLayout.AddView(flyoutView, layoutParameters);
}

DrawerLayout.CloseDrawer(flyoutView);
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean that the flyout will now never close whenever we select another item? I don't think that is what we want.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jfversluis, Currently, the flyout is not closed by default when selecting items in the flyout view across all platforms.

In the reported scenario, the issue arises when the user updates the FlyoutPage.Details while selecting an item in the flyout. This triggers the flyout to close by default. However, it does not close on other platforms, leading to inconsistency across the platforms. Could you please share your insight on this scenario?


if (VirtualView is IToolbarElement te && te.Toolbar?.Handler is ToolbarHandler th)
th.SetupWithDrawerLayout(DrawerLayout);
}
Expand Down
Loading